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.
A RectTransform defines what space a slot with [[UIX]] components on it will use, based on the total amount of space that has been provided.
<!--T:3-->
<!--T:3-->
== Usage ==
{{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 24:
Line 20:
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This can be used for placements inside your canvas or other upper elements, for your images or other lower elements for this container component.
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 normalized position in this rectangle that it rotates around.
Usage
This can be used for placements inside your canvas or other upper elements, for your images or other lower elements for this container component.
Examples
Related Components
The RectTransformComputedProperties component is useful when using this component as a reference, returning you the size of the actual rect transform for your calculations.