Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

(Case 1033895) Removing CanvasScaler corrupts UI, which cannot be undone

Discussion in '2018.2 Beta' started by Peter77, May 4, 2018.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,419
    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
    1. Removing the CanvasScaler Component of Canvas 2 should not affect elements of Canvas 1?
    2. Undo functionality should work always, it should properly undo both, the green and blue image sizes.
     
    LeonhardP likes this.
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Only 2018.2?
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,419
    MechEthan likes this.