Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
Issue ID
856669
Regression
Yes
Error when exiting play mode for 2D Scrolling Shooter (Unity A$ 2D Pack 2.0)
Error when exiting play mode for 2D Scrolling Shooter (Unity A$ 2D Pack 2.0)
Steps to Repro:
1. import the Unity 2D Pack 2.0 from the A$
2. open the Main scene for 2D Scrolling Shooter and click on Play to start
3. press X to start the gameplay and wait for an enemy ship to appear
4. click on Play again to stop the game
The following error occurs:
MissingReferenceException: The object of type 'GameObject' 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.
ObjectPool.PoolObject (UnityEngine.GameObject obj) (at Assets/Example Games/2D Scrolling Shooter/Scripts/ObjectPool.cs:111)
DestroyArea.OnTriggerExit2D (UnityEngine.Collider2D c) (at Assets/Example Games/2D Scrolling Shooter/Scripts/DestroyArea.cs:18)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit meshes are fully rendered and rasterized when opacity is 0
- Light rendering artefacts appear in the Editor when assigning unsupported 3D Custom Render Texture in Camera’s Output Texture, unclearable errors and warnings spammed
- Memory leak when running a test with "GfxThreadingMode" set to "SplitJobs"
- Loading Unloaded unsaved Scene throws “ArgumentException” error in the Console
- Crash on std::__1::__tree_const_iterator when opening the Build Profiles window in a specific project
Add comment