Search Issue Tracker

Fixed in 5.6.0

Votes

0

Found in

5.5.0f3

Issue ID

863271

Regression

Yes

Unity crashes when changing RectTransform values after deleting a Canvas that has a child Canvas at GetRootWorldToLocalMatrix

UI

-

Steps to reproduce:
1. Open the attached project (Crash on RectTransform delete.zip)
2. Open the Assets/Scene.unity scene
3. Select "Canvas 1" and delete components GraphicRaycaster, CanvasScaler and then Canvas
4. Select "Canvas 2" and notice that the Canvas component still says "Non-root Canvases will not be scaled." (but it is the root canvas now)
5. On "Canvas 1", try changing a value on the RectTransform, or deleting the component
6. Observe the crash

Expected result: Editor should not crash
Actual result: Editor crashes

Reproduced with: 5.4.3p3, 5.4.3p4, 5.5.0f3, 5.5.0p3, 5.6.0b2
Not reproduced with: 5.3.7p3, 5.4.2p3
Regression introduced in 5.4.3p3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.