parent
5892df1ce1
commit
f17ecafae7
|
@ -28,7 +28,7 @@ namespace Coffee.UIParticleExtensions
|
||||||
customMat = new Material(baseMat)
|
customMat = new Material(baseMat)
|
||||||
{
|
{
|
||||||
name = $"{baseMat.name}_{id}",
|
name = $"{baseMat.name}_{id}",
|
||||||
hideFlags = HideFlags.HideAndDontSave,
|
hideFlags = HideFlags.DontSave | HideFlags.NotEditable,
|
||||||
mainTexture = texture ? texture : null
|
mainTexture = texture ? texture : null
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -637,7 +637,7 @@ namespace Coffee.UIExtensions
|
||||||
// Create ortho-camera.
|
// Create ortho-camera.
|
||||||
if (!_orthoCamera)
|
if (!_orthoCamera)
|
||||||
{
|
{
|
||||||
var go = new GameObject("[generated] UIParticleOverlayCamera") { hideFlags = HideFlags.DontSave | HideFlags.NotEditable };
|
var go = new GameObject("[generated] UIParticleOverlayCamera") { hideFlags = HideFlags.HideAndDontSave };
|
||||||
go.SetActive(false);
|
go.SetActive(false);
|
||||||
go.transform.SetParent(transform, false);
|
go.transform.SetParent(transform, false);
|
||||||
_orthoCamera = go.AddComponent<Camera>();
|
_orthoCamera = go.AddComponent<Camera>();
|
||||||
|
|
|
@ -159,7 +159,7 @@ namespace Coffee.UIExtensions
|
||||||
// Create renderer object.
|
// Create renderer object.
|
||||||
var go = new GameObject("[generated] UIParticleRenderer", typeof(UIParticleRenderer))
|
var go = new GameObject("[generated] UIParticleRenderer", typeof(UIParticleRenderer))
|
||||||
{
|
{
|
||||||
hideFlags = HideFlags.DontSave | HideFlags.NotEditable,
|
hideFlags = HideFlags.HideAndDontSave,
|
||||||
layer = parent.gameObject.layer
|
layer = parent.gameObject.layer
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue