vbuzze
vbuzze

Reputation: 940

UI does not move when the window is resized

Somehow, and I can't get why, some parts of my UI don't move when I resize the window. It looks like they are not placed relative to the canvas borders, even though they are children of the Canvas. I tried to unparent and re-parent my UI components having this issue but nothing solves it. I restarted unity, deleted these parts and created them again adding new UI objects, and still the very same issue. While my older parts of the UI nicely resize with the canvas. Do you have any idea of what could go wrong ?

before resizing the window: enter image description here

after resizing the window using the mouse: enter image description here

The white square is supposed to stay in the top left hand corner but just seems like fixed.

Upvotes: 0

Views: 432

Answers (1)

LumbusterTick
LumbusterTick

Reputation: 1075

You have to set the pivots of your UI components from the transform component theres is a box click on it and press shift and alt to set a pivot . Also use a panel as parent for components you need to resize .

Upvotes: 2

Related Questions