Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.5.0f3
Issue ID
864353
Regression
No
Transform component being destroyed on application quit when its GameObject's parent is being changed
Steps to reproduce:
1. Open the project
2. Enter play mode
3. Wait for a couple of seconds and exit play mode
4. Notice the console's filled with errors "Can't destroy Transform component of <object>. If you want to destroy the game object, please call 'Destroy' on the game object instead. Destroying the transform component is not allowed."
5. Create an empty GameObject in the Hierarchy window
6. Drag the "GameObject" to "Stress Test" gameobject -> "Stress Test (Script)" -> "Container" field
7. Repeat steps 2-3
8. Notice errors changed to "Cannot change GameObject hierarchy while activating or deactivating the parent.
UnityEngine.Transform:SetParent(Transform)"
Expected: In both cases the error "Cannot change GameObject hierarchy while activating or deactivating the parent." is displayed, as the actions performed are the same
Actual: Errors differ depending on whether a parent container is set.
Reproduced on: 5.5.0p3, 5.6.0b3
Unable to reproduce on: 5.4.4f1
Comments (1)
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
geniusz
Aug 21, 2017 07:36
5.4.3 is ok, reproduced on 5.4.5p5