diff --git a/Packages/src/Scripts/ModifiedMaterial.cs b/Packages/src/Scripts/ModifiedMaterial.cs index b1601ab..fdf3baa 100644 --- a/Packages/src/Scripts/ModifiedMaterial.cs +++ b/Packages/src/Scripts/ModifiedMaterial.cs @@ -28,7 +28,7 @@ public static Material Add(Material baseMat, Texture texture, int id, int props) customMat = new Material(baseMat) { name = $"{baseMat.name}_{id}", - hideFlags = HideFlags.HideAndDontSave, + hideFlags = HideFlags.DontSave | HideFlags.NotEditable, mainTexture = texture ? texture : null } }; diff --git a/Packages/src/Scripts/UIParticle.cs b/Packages/src/Scripts/UIParticle.cs index 0d21be5..2048fd9 100644 --- a/Packages/src/Scripts/UIParticle.cs +++ b/Packages/src/Scripts/UIParticle.cs @@ -637,7 +637,7 @@ private Camera GetBakeCamera() // Create ortho-camera. 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.transform.SetParent(transform, false); _orthoCamera = go.AddComponent(); diff --git a/Packages/src/Scripts/UIParticleRenderer.cs b/Packages/src/Scripts/UIParticleRenderer.cs index 97f6ca9..65d848d 100644 --- a/Packages/src/Scripts/UIParticleRenderer.cs +++ b/Packages/src/Scripts/UIParticleRenderer.cs @@ -159,7 +159,7 @@ public static UIParticleRenderer AddRenderer(UIParticle parent, int index) // Create renderer object. var go = new GameObject("[generated] UIParticleRenderer", typeof(UIParticleRenderer)) { - hideFlags = HideFlags.DontSave | HideFlags.NotEditable, + hideFlags = HideFlags.HideAndDontSave, layer = parent.gameObject.layer };