[Source] FlexLayoutGroup (aka Flexbox)/ MaxLayoutElement and Other Commons

Hello guys,

Just want to share my implementation of some useful UGUI elements that was missing in default unity UI.

feel free to send me any bug/comments.

Download: kyub.uicommons_1.0
Support: raf.csoares@kyubinteractive.com
Page: www.kyubinteractive.com
License: MIT

Flex Layout Group

Flex Layout will act as a Horizontal/Vertical Layout until the row/collumn does not fit the element. In that case the element will overflow to next row/collumn.

Max Layout Element

Max Layout Element is a wrapper of Layout Element that makes possible configure Max Values.
ps: If you want configure a MaxValue of a Text (or TextMeshProUGUI), Set Layout Priority > 1.

Nested Scroll Rect

Send drag axis event not captured by this ScrollRect to its parent (if 'Nested Drag Active' enable).
If ScrollRect only capture Vertical Axis, the horizontal value will be sended Upward.

Linear Layout Group

Like default Vertical/Horizontal LayoutGroup. Switch between just checking 'Is Vertical' Field


Just what I needed. That FlexLayoutGroup component should be shipped with Unity. Also always wondered why the LayoutElement doesn't support max width/height out of the box. Great work!

1 Like