Panel proportional to screen (Size and position)

Maybe I am doing something wrong, but when I anchor a panel to canvas corners with horizontal and vertical stretch, panel should adjust to have fixed proportion to the canvas? This is quite common behavior you would want for scaling menu bars etc on different mobile screen sizes.

If I make simple scene with canvas and 1 panel with that setting, and change screen proportions, the panel only adjusts on one edge and flips at specific aspect ratios instead of just scaling down for example.

Am I just misunderstanding something obvious or what is the right way to have panel stay proportional in size and position to the screen.

Example is visible here, you can see that the opposite edge of child panel is NOT moving at all:

https://www.youtube.com/watch?feature=player_detailpage&v=JrlFMwLI1fw#t=625

So when you resize the screen, the panel that is supposed to scale on all directions, is actually not working. When you scale the screen by aspect ratio then it works. But clearly for resizing manually it does not work as advertised.

Attached also screencast of the problem.

1870436–120188–unity-screen-proportional.zip (539 KB)

No, that’s not what the stretch presets mean. Go have a look in the docs for some introduction of the basics:
http://docs.unity3d.com/Manual/UIBasicLayout.html

This might also be useful:
http://docs.unity3d.com/Manual/HOWTO-UIMultiResolution.html

1 Like

Ok, RTFM, I was just confused as the editor scaling worked differently with same setting as the aspect ratio scaling. As there it didnt flip the panels over when the scale got too small.