You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The following message appears when entering play mode while having a prefab open. The prefab edit mode is then stopped and you're thrown back to the scene.
Prefab Mode in Play Mode was blocked by the script 'SoftMaskable' to prevent the script accidentally affecting Play Mode. See the documentation for [ExecuteInEditMode] and [ExecuteAlways] for info on how to make scripts compatible with Prefab Mode during Play Mode.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
To Reproduce
Create a prefab.
Add the SoftMaskable script to any object inside it.
Open the prefab in prefab editing mode.
Start Play-mode.
Observe that prefab editing mode is stopped.
Environment (please complete the following information):
Platform: Editor (Windows)
Unity: 2019.2.1f1
SoftMaskForUGUI: 0.8.1
Additional context
By changing the ExecuteInEditMode attribute to ExecuteAlways, the warning is removed and the Prefab Edit mode stays open - I do not know if there are any unintentional changes due to this, so I figured it was best to make a bug report.
The text was updated successfully, but these errors were encountered:
Describe the bug
The following message appears when entering play mode while having a prefab open. The prefab edit mode is then stopped and you're thrown back to the scene.
To Reproduce
Environment (please complete the following information):
Additional context
By changing the ExecuteInEditMode attribute to ExecuteAlways, the warning is removed and the Prefab Edit mode stays open - I do not know if there are any unintentional changes due to this, so I figured it was best to make a bug report.
The text was updated successfully, but these errors were encountered: