Search Issue Tracker
Won't Fix
Votes
0
Found in
5.2.2p4
Issue ID
776746
Regression
No
Incorrect scale after removing a child with 'worldPositionStays' set
Steps to reproduce:
1. Open attached project's scene "Scale Bug".
2. Enter play mode.
3. Cube starts to scale even though it is only rotated by the script:
"Obj.SetParent (Scaler, true);
Obj.rotation = Quaternion.AngleAxis Time.realtimeSinceStartup, Vector3.up);
Obj.SetParent (null, true);"
Notes: disabling worldPositionStays (Obj.SetParent (null, false)) - does not scale cube anymore.
Using transform.parent = Scaler works the same as Obj.SetParent(Scaler, true).
Reproduced on 5.4.0b9, 5.3.3p1 and 5.1.0f3.
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
Add comment