Skip to content

Commit

Permalink
fix not being able to go into mod settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniMacaroni committed Aug 5, 2024
1 parent ec60c83 commit c034079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SonsSdk/SUI/SettingsRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,15 +580,15 @@ public void ParentTo(Transform parent)
}
}

if (UserContentContainer.Root)
if (UserContentContainer != null)
{
UserContentContainer.RectTransform.SetParent(parent, false);
}
}

public void Unparent()
{
if (UserContentContainer.Root)
if (UserContentContainer != null)
{
UserContentContainer.RectTransform.SetParent(Container.RectTransform, false);
}
Expand Down

0 comments on commit c034079

Please sign in to comment.