Remco.d.jong
Remco.d.jong

Reputation: 31

panel size to window size (Unity)

So I tried building my game, but I saw that the objects that were set on a panel didnt keep their position. If I click on max window size then the objects move away from their original position. How can I solve this? (see images for extra info)

enter image description here

enter image description here

Upvotes: 1

Views: 1875

Answers (1)

Barış Can Yılmaz
Barış Can Yılmaz

Reputation: 735

You should set ui elements' anchor position

For example my Restart button is in top-left place. When screen size change, it doesn't change position. To do this, click your ui object, click anhcor-presets section, press alt key and select a position which you want.

enter image description here

Also, Canvas scale may help you for resizing ui objects,when you change screen size

enter image description here

Upvotes: 3

Related Questions