Let’s say I want a UI panel on a canvas to always take up the left 1/3 of my screen. I want the panel height to always match the screen height, and the panel width to always match 1/3 of the screen width.
If I wanted to have the panel take up the middle 1/3 of the screen, I can do this:
- Make canvas scale by height, such that the canvas always has the height of the screen.
- Attach panel as child to canvas
- Set panel x scale to 0.33
Is there a way to anchor the panel to the left side of the screen using Rect Transform? I can’t seem to find a combination of anchor/pivot/position that behaves as I expect it to.