- Home /
Scaling UI position
Messing around with the Unity UI stuff, fairly new to all of it, and I'm facing an issue I'm not sure should be solved through code or trough some existing Unity feature. Here goes:
I use anchors to position some UI elements from the left side of the screen. At 16:9, I want the elements to be distanced from the edge a little because if fits better with everything else.
However, at 4:3, the game takes up more space behind the UI and so I want the elements to be close to the edge to save some room.
All I read seems to say that anchors set an absolute position across all resolutions, which is great if you want something to really stick to the side of the screen, but what if you want the position to "scale" depending on the resolution?
Here's a mockup of the behavior I want:
Your answer

Follow this Question
Related Questions
GetComponent() Problem with getting value. 1 Answer
UI Scrollbar in the wrong location 0 Answers
GetLocalCorners not working correctly 1 Answer
Snap UI Text inside canvas 1 Answer