Hi,
I am using such structure for my UI object:
How to setup LayoutElement based on apect
I am using such structure for my UI object:
- Content - parent object got VerticalLoyoutGroup with force expand width, and ContentSizeFitter with VerticalFit (prefered)
- Block - subcontainer with HorizontalLayoutGroup with force expand width and height
- Block element - got AspectRatioFitter (width controls height)
How to setup LayoutElement based on apect