How to use anchors for adaptive layout UI?

Please tell me what I'm doing wrong.
On the stage is a Canvas with the following settings:
Inside the Canvas is a series of panels, including a Panel with the following settings:
Inside the panel horizontally, there are 10 buttons, a Button with the following settings:
The problem is that I cannot get the keypad to dynamically adjust its size under display settings, and when changing resolutions or it is truncated or disappears.
Last night experimented, watched a few tutorials on adaptive layout - like clear, I repeat the same thing, but I have not worked.
Tried a bunch of combinations of anchors, nothing works... How to configure that the size has varied under the screen resolution?
April 19th 20 at 12:13
1 answer
April 19th 20 at 12:15
Here you can't just "tell" you what to do. You need to study, is responsible for what each setting in the Rect Transform to understand how to use them.

Start with this:
  • set the position and shifts to zero, is the location and offset of the item in the field. These figures (indentation or fiksirovanniy size) adjusted to the blank field and under the current location of the object (when switching bars). So don't forget to reset them, first, so as not to interfere to deal with the rest
  • the A field contains the preset settings to align or stretch the object on all selected area of a canvas. They can be used, and you can just directly figures to drive in the fields
  • in the to box (anchor), you specify the proportions, how and where the element to stretch in X and Y. for example, when Xmin=0, Xmax=0.5, the item is always, in any window size will occupy the left part and walk to the middle of the window/canvas


Well and walk to and from a couple of tutorials on the canvas UI, without the "gag" to avoid confusion.
Thank you! While in the field To what units are used? Interest?
Ie, if I have panel horizontal 10 elements and you want they were one behind the other, then I first anchors with respect to X put a 0/0.1, the second, 0.1/0.2, third 0.2/0.3 etc.? - alejandrin_Hodkiewi commented on April 19th 20 at 12:18
@alejandrin_Hodkiewi, Exactly. - dawson.Jast15 commented on April 19th 20 at 12:21

Find more questions by tags Unity Game Engine