Added a description, added field descriptions, added usage a description.
(2 intermediate revisions by 2 users not shown)
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=AspectRatioFitterComponent.png
|Image=AspectRatioFitterComponent.png
Line 9:
Line 8:
<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''AspectRatioFitter''' component makes the contents (child [[Slot|slots]]) of the [[Component:RectTransform|RectTransform]] stay the same dimensions (or the same ratio), even when the canvas or [[UIX]] element this component is in changes size.
<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|AspectRatio|Float|
|AspectRatio|Float|The aspect ratio of this UIX element. <code>1</code> is a perfect square, less than <code>1</code> is a vertical ratio, greater than <code>1</code> is a horizontal ratio.
The AspectRatioFitter component makes the contents (child slots) of the RectTransform stay the same dimensions (or the same ratio), even when the canvas or UIX element this component is in changes size.