It is possible to corrupt the UI by removing a CanvasScaler Component. The UI corruption is not reversible, Undo does not work.
Reproduce
- Open Assets/Scene.unity
- Move “Canvas 2” into “Canvas 1” in Hierarchy window
- Select “Canvas 2” and remove the “CanvasScaler” Component
=> Observe how this affects the size of the green image, which is part of “Canvas 1”.
- Click “Edit > Undo”
=> Observe it undoes the blue image size, but the green image size keeps too big (corrupted).
Expected
- Removing the CanvasScaler Component of Canvas 2 should not affect elements of Canvas 1?
- Undo functionality should work always, it should properly undo both, the green and blue image sizes.