How can I force a fixed width panel anchored to the left of the screen shrink when it hits the edge of its parent container?
I understand most of the canvas scaling to screen, but I'm having issues with this one situation.
I want the panel to stay anchored on the right, so that on a big screen, it will only be 500 px anchored on the left... but if viewed on a mobile sized portrait device, the panel will shrink if that 500 px ends up overflowing?
Do I need custom scripting or can this be done with the layout element system somehow?
My current set up specifically: It's a Canvas, with Scale with Screen Size, set to match the height completely @ 1920x1080. Then i have a child canvas "default" width 500 anchored at x(0,0) pivot 0, and y(0,1) pivot 0.5. (so it anchors left , fills top to bottom, and stretches right 500px).
↧