Skip to content

Commit

Permalink
fix: accessing game object transform hierarchy before loading of scen…
Browse files Browse the repository at this point in the history
…e has completed

close #208
  • Loading branch information
mob-sakai committed Nov 16, 2024
1 parent d3f7414 commit 9dfacbf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ private static void ResetAllSoftMasks()
foreach (var softMask in FindObjectsOfType<SoftMask>())
#endif
{
// #208: Accessing game object transform hierarchy before loading of scene has completed.
if (!softMask.gameObject.scene.isLoaded) continue;

softMask.GetComponentsInParent(true, softMasks);
if (1 < softMasks.Count) continue;

Expand Down

0 comments on commit 9dfacbf

Please sign in to comment.