- Home /
UI - How do I set the anchors to align left and right images when resized?
Consider the following layout. 
What I want to do is keep this layout looking proportionally the same no matter how it is resized. I'm very new to Unity UI and can't quite figure out the best way to do that.
The biggest challenge in this for me are the left/right images. I can anchor them to the left and right edges respectively, which is fine, but they grow farther and farther apart from each other as the UI grows in width. In other words, I want to avoid doing these things, and have it look correct in all cases.
Can I achieve this using anchors? If not, how?
Answer by gigos22 · Apr 29, 2021 at 06:31 PM
Click the UI element you wish to anchor and then see the screenshot:
*While pressing down the alt key, click on the alignment you want.
If you don't press alt it wouldn't be best results.
Your answer
Follow this Question
Related Questions
How to create a sprite button to load level when touched 0 Answers
Input Button is not setup. 0 Answers
Circular scrolling Main Menu. 0 Answers
press esc to show a GUI menu 2 Answers
how to make GUI menu after all objects or enemies are destroyed 1 Answer