Reproduction steps:
- Open the attached "IN-149146_EMPTY" project
- In the Editor menu bar, go to Edit > Project Settings... > Player > Other Settings
- In the "Configuration" section, make sure that "Scripting Backend" is set to "CoreCLR (Experimental)"
- In the "Optimization" section, make sure that "Managed Stripping Level" is set to "Low" or "Medium"
- In the Editor menu bar, go to File > Build Profiles and make sure that "Development Build" is enabled
- Build and run the project
- Observe the console window in the Player
Actual result: A "NullReferenceException" errors are thrown
Expected result: No errors are thrown
Reproducible with: 6000.7.0a2, 6000.7.0a5
Could not test with: 6000.0.82f1, 6000.3.23f1, 6000.5.10f1, 6000.6.0b10 (CoreCLR scripting backend does not exist)
Reproducible environment: Windows 11
Not reproducible environment: No other environments tested
Notes:
- The errors do not appear with "Managed Stripping Level" set to "Disabled" or "Minimal"