m ProbablePrime moved page RectTransform (Component) to Component:RectTransform: Creating component Namespace |
Automated: update Fields, Categories |
||
Line 16: | Line 16: | ||
== Usage == | == 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. | ||
|AnchorMax|Float2|The normalized position (0 to 1) in the parent object that the upper right corner is anchored to. | |AnchorMax|Float2|The normalized position (0 to 1) in the parent object that the upper right corner is anchored to. | ||
|OffsetMin|Float2|The offset of the lower left corner of the rectangle relative to the lower left anchor, in pixels. | |OffsetMin|Float2|The offset of the lower left corner of the rectangle relative to the lower left anchor, in pixels. | ||
Line 33: | Line 33: | ||
== Related Components == | == Related Components == | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}| | [[Category:Components{{#translation:}}|Rect Transform]] | ||
[[Category:ComponentStubs]] | [[Category:ComponentStubs]] | ||
[[Category:Components:UIX{{#translation:}}| | [[Category:Components:UIX{{#translation:}}|Rect Transform]] |
Revision as of 21:36, 3 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Intoduction
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.
Usage
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
AnchorMin
|
Float2 | The normalized position (0 to 1) in the parent object that the lower left corner is anchored to. |
AnchorMax
|
Float2 | The normalized position (0 to 1) in the parent object that the upper right corner is anchored to. |
OffsetMin
|
Float2 | The offset of the lower left corner of the rectangle relative to the lower left anchor, in pixels. |
OffsetMax
|
Float2 | The offset of the upper right corner of the rectangle relative to the upper right anchor, in pixels. |
Pivot
|
Float2 | The normalized position in this rectangle that it rotates around. |