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 643d5b4 commit 86889feCopy full SHA for 86889fe
Runtime/AutoTile.cs
@@ -1,5 +1,6 @@
1
-#if UNITY_EDITOR
+#if UNITY_EDITOR
2
using UnityEditor;
3
+using UnityEditor.Experimental.SceneManagement;
4
#endif
5
using UnityEngine;
6
@@ -138,7 +139,7 @@ private void LateUpdate()
138
139
public void Tile()
140
{
141
#if UNITY_EDITOR
- if (PrefabUtility.IsPartOfPrefabAsset(this)) {
142
+ if (PrefabUtility.IsPartOfPrefabAsset(this) || PrefabStageUtility.GetCurrentPrefabStage() != null) {
143
return;
144
}
145
0 commit comments