Search Unity

Canvas in prefab editing scene won't scale its aspect ratio with Game View's in prefab mode.

Discussion in 'Prefabs' started by Nomosoro, Jun 5, 2019.

  1. Nomosoro

    Nomosoro

    Joined:
    Jan 6, 2017
    Posts:
    2
    Hi all, what I wanted is to edit UI prefabs while being able to review its responsive result by scaling Game View's size. But resizing the Game View only makes the UI elements bigger without resizing the canvas they sit on. My guess is resizing Game View affects the pixel numbers of the resolution but not the aspect ratio.

    UI prefab mode's canvas does not resize its aspect ratio when I resize the Game View. Incorrect result:
    upload_2019-6-5_12-5-47.png

    Further widened Game View and the aspect ratio of Canvas remains unchanged. Incorrect result:
    upload_2019-6-5_12-6-59.png

    However, if I re-open the prefab the canvas resized itself correctly upon opening. Correct result:
    upload_2019-6-5_12-11-1.png

    Unity version: 2018.4.1f1
     
    Last edited: Jun 5, 2019