How to reproduce:
1. Create and open a new project
2. Add a GameObject to the Hierarchy (right click in Hierarchy and select “Create Empty”)
3. In the Inspector, add an “Image” component
4. Create and open a new C# script
5. Edit the script in any way and save it
6. Go back to the Editor, the GO with “Image” component has to remain selected
7. Observe the Inspector and the Console
Actual result: The Inspector fails to render and becomes a black box, in the Console an error is repeatedly thrown
Expected result: Nothing changes in the Inspector and no errors are thrown
Reproducible with: 6000.4.3f1, 6000.5.0b4, 6000.6.0a1 (b0e692525f04), 6000.6.0a2
Not reproducible with: 6000.0.72f1, 6000.3.13f1, 6000.5.0a7
Reproducible on: macOS 26.3 (M1 Pro)
Not reproducible on: No other environments tested
Notes:
- Does not reproduce when Entering/Exiting Play mode
- After the issue is reproduced the Inspector will not recover if attempting to close and reopen it
- Errors thrown:
”Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI”
”NullReferenceException: Object reference not set to an instance of an object”