We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd2e988 commit 5a87fc3Copy full SHA for 5a87fc3
Assets/Scripts/UI/UIPanel.cs
@@ -161,7 +161,7 @@ void CreateContainer()
161
GameObject go = t.GetChild(cnt - 1).gameObject;
162
if (go.name == "UI(AutoGenerated)")
163
{
164
-#if UNITY_2018_3_OR_NEWER
+#if (UNITY_2018_3_OR_NEWER && UNITY_EDITOR)
165
if (PrefabUtility.IsPartOfPrefabInstance(go))
166
PrefabUtility.UnpackPrefabInstance(PrefabUtility.GetOutermostPrefabInstanceRoot(gameObject), PrefabUnpackMode.Completely, InteractionMode.AutomatedAction);
167
#endif
0 commit comments