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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
Add comment