Search Issue Tracker
By Design
Votes
1
Found in [Package]
1.19.14
Issue ID
ADDR-3110
Regression
No
Warnings "The referenced script on this Behaviour (Game Object '<null>') is missing!" and error "NullReferenceException: Object reference not set to an instance of an object" thrown when in Play Mode after building Addressables
How to reproduce:
1. Open the project “IN_24945”
2. Open the “SceneTest” Scene in Assets
3. Open the “Addressables Group” window
4. Set the Play Mode script to “Use Existing Build”
5. Build the Addressables
6. Enter the Play Mode
Expected result: no warnings and errors in the Console
Actual result: warnings “The referenced script on this Behaviour (Game Object '<null>') is missing!” and error “NullReferenceException: Object reference not set to an instance of an object” in the Console
Reproducible with: 1.19.15 (2020.3.42f1)
Couldn't test with: 1.19.15 (2021.3.16f1, 2022.1.23f1, 2022.2.0f1, 2023.1.0a23 (due to compiler errors))
Reproducible on: Windows 10 Pro
Notes:
- not reproducible in the new project
Workaround: enable “Enter Play Mode options” in the Editor settings
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note:
After looking into this issue we believe that the null ref exception is caused by the users scripts and is not an issue with Addressables.