Reproduction steps:
1. Create and open any new project
2. Go to Edit > Project Settings > Player
3. Under Other Settings tab change the Color Space (from “Gamma” to “Linear” or vice versa)
4. Close the Project Settings window
5. Open the Project Settings window again
6. Observe the Console
Expected result: No errors
Actual result: “NullReferenceException: Object reference not set to an instance of an object” is thrown
Reproducible with: 6000.2.0a1, 6000.2.0a7
Not reproducible with: 2022.3.60f1, 6000.0.43f1, 6000.1.0b3, 6000.1.0b11
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- Reopening the project stops the errors
- Changing from Linear to Gamma Color Space also shows this warning: "Requested RenderTexture with sRGB format. sRGB formats are not supported in gamma mode, fallback to a UNorm format. Use a UNorm format instead of sRGB to silence this warning.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)". This warning is present from 6000.1.0b9 version and is shown in the 6000.1 stream as well