feat: "[generated]" GameObjects on the hierarchy is disturbing

close #288
pull/310/head
mob-sakai 2024-01-23 23:01:45 +09:00
parent 5892df1ce1
commit f17ecafae7
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace Coffee.UIParticleExtensions
customMat = new Material(baseMat)
{
name = $"{baseMat.name}_{id}",
hideFlags = HideFlags.HideAndDontSave,
hideFlags = HideFlags.DontSave | HideFlags.NotEditable,
mainTexture = texture ? texture : null
}
};

View File

@ -637,7 +637,7 @@ namespace Coffee.UIExtensions
// 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<Camera>();

View File

@ -159,7 +159,7 @@ namespace Coffee.UIExtensions
// Create renderer object.
var go = new GameObject("[generated] UIParticleRenderer", typeof(UIParticleRenderer))
{
hideFlags = HideFlags.DontSave | HideFlags.NotEditable,
hideFlags = HideFlags.HideAndDontSave,
layer = parent.gameObject.layer
};