Add support for `ILayoutElement` properties
Closed this issue · 1 comments
RichardWepnerPD commented
The ILayoutElement
defines some properties that are used by other components in UGUI and thus vital for defining UIs using UGUI. These are min, preferred, and flexible width and height.
One example use case would be a ScrollRect
containing content layed out using the FlexLayout
. Since the content element of the scroll rect needs to have a size in order for the scorlling to be limited accordingly, a ContentSizeFitter
is frequently used to restrict the size of the element to the preferred height (or width).
Adressing this might also resolve the issue #24.