Automated: update Fields, Categories |
Added a warning note. |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=RectSizeDriverComponent.png | |Image=RectSizeDriverComponent.png | ||
Line 9: | Line 8: | ||
<!--T:2--> | <!--T:2--> | ||
The '''RectSizeDriver''' component is used to change the size of a [[Component:RectTransform|RectTransform]] (or any other [[Type:float2|float2]] value). | |||
{{Note|Using this component may have a chance of breaking your [[UIX]], and will need to be recalculated when the component gets removed.|warning}} | |||
<!--T:3--> | <!--T:3--> | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|TargetSize|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv0=true| | |TargetSize|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv0=true|The target to scale using this component. | ||
|Scale|Float2| | |Scale|Float2|The scale to adjust. | ||
}} | }} | ||
<!--T:4--> | <!--T:4--> | ||
== | == Usage == | ||
<!--T:5--> | <!--T:5--> | ||
Line 28: | Line 28: | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Rect Size Driver]] | [[Category:Components{{#translation:}}|Rect Size Driver]] | ||
[[Category:Components:UIX:Utility{{#translation:}}|Rect Size Driver]] | [[Category:Components:UIX:Utility{{#translation:}}|Rect Size Driver]] |
Latest revision as of 01:27, 29 July 2024
Component image
The RectSizeDriver component is used to change the size of a RectTransform (or any other float2 value).
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. |
TargetSize
|
field drive of Float2 | The target to scale using this component. |
Scale
|
Float2 | The scale to adjust. |