Search Issue Tracker
Not Reproducible
Votes
0
Found in
2018.3.0a6
2018.3.0b10
2019.1.0a1
Issue ID
1102282
Regression
No
MissingReferenceException is thrown when editing script parameters of GameObjects dynamically Instantiated in a Coroutine
Steps to reproduce:
1. Open users attached project
2. Press Play
3. In Assets folder select "Drop" Prefab
4. Click Open Prefab in the Inspector window
5. Change the speed parameter and go back to normal Hierarchy window
Expected results: No errors are thrown after script parameter of the Prefab is edited during the Play mode
Actual results: After any parameter is edited in the script of the Prefab during Play mode, error will appear "MissingReferenceException: The object of type 'Drop' has been destroyed but you are still trying to access it." Your script should either check if it is null or you should not destroy the object.
Reproducible with: 2018.3.0a6, 2018.3.0f2, 2019.1.0a11
Not reproducible with: 2017.4.16f1, 2018.2.18f1, 2018.3.0a5
Note: Improved Prefabs appeared in 2018.3.0a6. This error will only appear on Instantiated GameObject.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Incorrect Shader keyword activation for Shadows when no Light is present in URP
- Editor freezes when loading a specific AssetBundle
- WebGPU builds with Multithreading enabled crash on Safari
- Set as Value in UI Builder doesn't work across all properties.
- Reorderable ListView inside a ScrollView has a glitchy behavior when trying to reorder items
Add comment