Skip to content

Commit

Permalink
feat: "[generated]" GameObjects on the hierarchy is disturbing
Browse files Browse the repository at this point in the history
close #288
  • Loading branch information
mob-sakai committed Jan 23, 2024
1 parent c6b25c7 commit 7c42421
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Packages/src/Scripts/ModifiedMaterial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
};
Expand Down
2 changes: 1 addition & 1 deletion Packages/src/Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Camera>();
Expand Down
2 changes: 1 addition & 1 deletion Packages/src/Scripts/UIParticleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 7c42421

Please sign in to comment.