In developing Android applications, there is a remarkable property of the layout element as layout_weight. It sets the behavior of the layout elements so that they occupy the specified amount of space from the parent as a percentage (roughly speaking). That is, if there are 2 elements and it is necessary that the first email. occupied three quarters of the space of the parent, and the second email. one quarter, then you need to set the values ​​of layout_weight 3 and 1, respectively.

Is there an analogue of this property in the Unity UI? How to implement this behavior by standard means.

  • Nope. UI by the way is OpenSource, you can add what you need - Xumera_hZ
  • In Unity UI, this is done using anchors, usually without a code. Here , for example, I wrote a little about anchors - eastwing

0