Component:RectSizeDriver: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page RectSizeDriver (Component) to Component:RectSizeDriver: Creating component Namespace
Added a warning note.
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=RectSizeDriverComponent.png
|Image=RectSizeDriverComponent.png
Line 9: Line 8:


<!--T:2-->
<!--T:2-->
== Intoduction ==
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-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|TargetSize|Float2|  
|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-->
== Behavior ==
== Usage ==


<!--T:5-->
<!--T:5-->
Line 27: Line 27:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|RectSizeDriver (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Rect Size Driver]]
[[Category:ComponentStubs]]
[[Category:Components:UIX:Utility{{#translation:}}|Rect Size Driver]]
[[Category:Components:UIX:Utility{{#translation:}}|RectSizeDriver (Component){{#translation:}}]]

Latest revision as of 01:27, 29 July 2024

Component image 
RectSizeDriver component as seen in the Scene Inspector


The RectSizeDriver component is used to change the size of a RectTransform (or any other float2 value).

Using this component may have a chance of breaking your UIX, and will need to be recalculated when the component gets removed.
Fields
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.

Usage

Examples

Related Components