Component:RectSizeDriver: Difference between revisions

From Resonite Wiki
Added a description. Basic cleanup.
Added a warning note.
 
Line 9: Line 9:
<!--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).
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-->

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