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
Create a gameobject, add a MonoBehaviour script with; [SerializeField] private SceneReference sceneReference;
Make the GO into a prefab.
Select the prefab asset in the project view.
Add a scene to the reference.
deselect and reselect the prefab asset.
Unity gets stuck in what looks like an OnValidate loop.
.....
Loss?
If it indeed is due to OnValidate being run somewhere, we need something like; UnityEditor.EditorUtility.IsPersistent(gameObject)
or gameObject.scene.IsValid()
The text was updated successfully, but these errors were encountered:
Reproduce;
[SerializeField] private SceneReference sceneReference;
If it indeed is due to OnValidate being run somewhere, we need something like;
UnityEditor.EditorUtility.IsPersistent(gameObject)
or
gameObject.scene.IsValid()
The text was updated successfully, but these errors were encountered: