diff --git a/SonsSdk/SUI/SettingsRegistry.cs b/SonsSdk/SUI/SettingsRegistry.cs index 81d719e..ccca495 100644 --- a/SonsSdk/SUI/SettingsRegistry.cs +++ b/SonsSdk/SUI/SettingsRegistry.cs @@ -580,7 +580,7 @@ public void ParentTo(Transform parent) } } - if (UserContentContainer.Root) + if (UserContentContainer != null) { UserContentContainer.RectTransform.SetParent(parent, false); } @@ -588,7 +588,7 @@ public void ParentTo(Transform parent) public void Unparent() { - if (UserContentContainer.Root) + if (UserContentContainer != null) { UserContentContainer.RectTransform.SetParent(Container.RectTransform, false); }