Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

How to setup LayoutElement based on apect

$
0
0
Hi,

I am using such structure for my UI object:
  1. Content - parent object got VerticalLoyoutGroup with force expand width, and ContentSizeFitter with VerticalFit (prefered)
  2. Block - subcontainer with HorizontalLayoutGroup with force expand width and height
  3. Block element - got AspectRatioFitter (width controls height)
The idea to fit 2 block elements to content width. Unfortunately, block element do not get actual height of block elements calculated by aspect ratio...

How to setup LayoutElement based on apect

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>