I could hotfix it by changing the condition in OnValidate from !allGlobals.Contains(this)
to UnityEditor.PrefabUtility.GetPrefabType(this) != UnityEditor.PrefabType.Prefab && !allGlobals.Contains(this)
And gameObject.scene.IsValid() && !allGlobals.Contains(this)
would also work.
Login
Register
By registering on this website you agree to our Privacy Policy.