Hello.
We’re having a relatively harmless, but annoying bug on our project. We’re having these two errors appearing multiples times every time our scripts recompiles. It goes away when we restart Unity.
The error appearance is not constant, as we can have multiples recompiles without it appearing, but as soon as it appears once, it will continue appearing, and the errors count will increase every time.
For exemple (I’ll take random numbers) :
I start up Unity, and just work as usual.
No errors appear until the 7th recompile. We then have ~40 of these errors.
At the 8th recompile, we have ~100 of these.
At the 9th, we have ~200
At the 10th, ~500
ect
We’re in Unity (2D) 2021.3.10f1, using URP.
We already tried :
- Closing a potential second inspector window
- Closing every single window
- Removing every single asset
- In an empty scene
- “Reimport All”
- Not having a GO selected in inspector
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.OnDisable () (at <99feab6f3db6407493924fe4a179a95b>:0)
SerializedObjectNotCreatableException: Object at index 0 is null
UnityEditor.Editor.CreateSerializedObject () (at <99feab6f3db6407493924fe4a179a95b>:0)
UnityEditor.Editor.GetSerializedObjectInternal () (at <99feab6f3db6407493924fe4a179a95b>:0)
UnityEditor.Editor.get_serializedObject () (at <99feab6f3db6407493924fe4a179a95b>:0)
UnityEditor.GameObjectInspector.OnEnable () (at <99feab6f3db6407493924fe4a179a95b>:0)
Thanks for your time!