(One intermediate revision by the same user not shown)
Line 9:
Line 9:
<!--T:2-->
<!--T:2-->
The '''RectTransform''' component defines what space a slot with [[UIX]] components on it will use, based on the total amount of space that has been provided. This is mostly used to encapsulate elements with inside it, then provides options to anchor, offset, and pivot the placement of the RectTransform container.
The '''RectTransform''' component defines what space a slot with [[UIX]] components on it will use, based on the total amount of space that has been provided. This is mostly used to encapsulate elements with inside it, then provides options to anchor, offset, and pivot the placement of the RectTransform container.
{{Note|When smoothly changing this component's values it will not act with the intended effect. Use [[Component:RectTransformLerp]] instead.|warning}}
<!--T:3-->
<!--T:3-->
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|AnchorMin|Float2|The normalized position (0 to 1) in the parent object that the lower left corner is anchored to.
|AnchorMin|Float2|The normalized position (0 to 1) in the parent object that the lower left corner is anchored to.
Line 32:
Line 35:
<!--T:6-->
<!--T:6-->
== Related Components ==
== See Also ==
The [[Component:RectTransformComputedProperties|RectTransformComputedProperties]] component is useful when using this component as a reference, returning you the size of the actual rect transform for your calculations.
The [[Component:RectTransformComputedProperties|RectTransformComputedProperties]] component is useful when using this component as a reference, returning you the size of the actual rect transform for your calculations.
The RectTransform component defines what space a slot with UIX components on it will use, based on the total amount of space that has been provided. This is mostly used to encapsulate elements with inside it, then provides options to anchor, offset, and pivot the placement of the RectTransform container.
When smoothly changing this component's values it will not act with the intended effect. Use Component:RectTransformLerp instead.
The RectTransformComputedProperties component is useful when using this component as a reference, returning you the size of the actual rect transform for your calculations.