Skip to content

Commit

Permalink
fix: generated baking-camera object remains in the prefab or scene
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jun 21, 2024
1 parent c27152a commit fd66928
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Packages/src/Runtime/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ private Camera GetBakeCamera()
{
var go = new GameObject("[generated] UIParticle BakingCamera")
{
// hideFlags = HideFlags.HideAndDontSave
hideFlags = HideFlags.DontSave
hideFlags = HideFlags.HideAndDontSave
};
go.SetActive(false);
go.transform.SetParent(transform, false);
Expand Down

0 comments on commit fd66928

Please sign in to comment.