Skip to content

Commit 5a87fc3

Browse files
committed
fixed typo
1 parent cd2e988 commit 5a87fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/UI/UIPanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void CreateContainer()
161161
GameObject go = t.GetChild(cnt - 1).gameObject;
162162
if (go.name == "UI(AutoGenerated)")
163163
{
164-
#if UNITY_2018_3_OR_NEWER
164+
#if (UNITY_2018_3_OR_NEWER && UNITY_EDITOR)
165165
if (PrefabUtility.IsPartOfPrefabInstance(go))
166166
PrefabUtility.UnpackPrefabInstance(PrefabUtility.GetOutermostPrefabInstanceRoot(gameObject), PrefabUnpackMode.Completely, InteractionMode.AutomatedAction);
167167
#endif

0 commit comments

Comments
 (0)