Search Issue Tracker
By Design
Votes
0
Found in
5.3.4f1
Issue ID
791670
Regression
No
[ExecuteInEditMode] DestroyImmediate fails to destroy in OnDestroy() when entering play mode
Reproduction steps:
1. Open the attached project "Repro.zip"
2. Open the "test" scene
3. Press Play button few times and notice that
Actual result: Even though OnDestroy() function is called before entering the play mode DestroyImmediate fails to destroy it fails to destroy GameObjects
Expected result: DestroyImmediate is expected to destroy object when called from OnDestroy() function
Reproduced on: 5.4.0b18, 5.3.5f1, 5.2.4f1, 5.1.4f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SerializeReference interface does not show CustomPropertyDrawer when it's inherited from another interface
- Rendering artifacts appear in the Editor when modifying the Reflection Probe box size
- [HDRP] XR Multipass calls BeginCameraRendering and EndCameraRendering for each pass of the same camera
- NavMesh Surface is baked too high above the ground, making the NavMesh Agents hover above the ground when the HeightMesh is not built
- [Android] Crash on ProcessDynamicBatchGeometryJob with OpenGL or on DrawSharedGeometryJobs with Vulkan
Add comment