The '''FixedRectFitterLayout''' component fits the content in a fixed way, while also giving the [[User|user]] control on how it fits within a [[UIX]] element.
<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|HorizontalAlign|LayoutHorizontalAlignment|
|HorizontalAlign|LayoutHorizontalAlignment|Aligns the contents in a horizontal way.
|VerticalAlign|LayoutVerticalAlignment|
|VerticalAlign|LayoutVerticalAlignment|Aligns the contents in a vertical way.
|Mode|'''[[#FitMode|FitMode]]'''|TypeAdv2=true|
|Mode|'''[[#FitMode|FitMode]]'''|TypeAdv2=true|How this fitter should conform in this [[Component:RectTransform|RectTransform]]
|AllowShrink|Bool|
|AllowShrink|Bool|Should this [[UIX]] element shrink when this [[Slot|slot]]'s contents shrinks.
|AllowGrow|Bool|
|AllowGrow|Bool|Should this [[UIX]] element grow when this [[Slot|slot]]'s contents grows.
}}
}}
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
Used when a user needs the contents to be more exact and static. For something a bit more dynamic, it is usually recommended to use a [[Component:ContentSizeFitter|ContentSizeFitter]] component instead.
<!--T:5-->
<!--T:5-->
Line 31:
Line 30:
</translate>
</translate>
[[Category:Components{{#translation:}}|Fixed Rect Fitter Layout]]
[[Category:Components{{#translation:}}|Fixed Rect Fitter Layout]]
[[Category:ComponentStubs]]
[[Category:Components With Nested Enums{{#translation:}}|Fixed Rect Fitter Layout]]
[[Category:Components With Nested Enums{{#translation:}}|Fixed Rect Fitter Layout]]
[[Category:Components:UIX:Layout{{#translation:}}|Fixed Rect Fitter Layout]]
[[Category:Components:UIX:Layout{{#translation:}}|Fixed Rect Fitter Layout]]
Revision as of 22:49, 28 July 2024
Component image
FixedRectFitterLayout component as seen in the Scene Inspector
The FixedRectFitterLayout component fits the content in a fixed way, while also giving the user control on how it fits within a UIX element.
Should this UIX element grow when this slot's contents grows.
Usage
Used when a user needs the contents to be more exact and static. For something a bit more dynamic, it is usually recommended to use a ContentSizeFitter component instead.