Game Development Reference
In-Depth Information
Layout Element
Most UI controls implement Layout Element properties internally but to expose these
for manipulation, you need to add the Layout Element component ( Add Component
| Layout | Layout Element ) to a child of a layout group as shown here:
Through each of the settings we can define:
Ignore Layout : Added the override and then changed your mind? Then
you can turn it off with this handy toggle. Most likely for use in scripts or
animation where you want to alter the layout properties of a UI element at
runtime but don't want to keep changing the settings. It does not reset the
properties set in the Layout Element .
Min Width : The minimum width property defines the smallest width that
the Rect Transform for the child element in a layout group will scale down
to. If the layout group's Rect Transform width is reduced, the control will
scale down until this width property is hit and will not scale the width down
any further. In the following example, the topmost element has a Min Width
set to 100 and is not resized, whereas the bottom most element has not and
as such has been scaled down:
The top most child element overrides the layout and remains larger
 
Search WWH ::




Custom Search