Component:RectTransformLerp: Difference between revisions

From Resonite Wiki
Automated: update Fields, Categories
Basic clean up. Added field descriptions.
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=RectTransformLerpComponent.png
|Image=RectTransformLerpComponent.png
Line 9: Line 8:


<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''RectTransformLerp''' component takes the [[Component:RectTransform|RectTransform]] that's on the same [[Slot|slot]] and lerps the size & scale of the RectTransform.
The RectTransformLerp component takes the [[RectTransform (Component)|RectTransform]] that's on the same slot and lerps the size & scale of the Rect Transform.


<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Lerp|Float|
|Lerp|Float|The amount to lerp by.
|SourceRect|'''[[Component:RectTransform|RectTransform]]'''|TypeAdv1=true|
|SourceRect|'''[[Component:RectTransform|RectTransform]]'''|TypeAdv1=true|The [[Component:RectTransform|RectTransform]] to lerp.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==


<!--T:5-->
<!--T:5-->
Line 29: Line 26:
</translate>
</translate>
[[Category:Components{{#translation:}}|Rect Transform Lerp]]
[[Category:Components{{#translation:}}|Rect Transform Lerp]]
[[Category:ComponentStubs]]
[[Category:Components:UIX:Utility{{#translation:}}|Rect Transform Lerp]]
[[Category:Components:UIX:Utility{{#translation:}}|Rect Transform Lerp]]

Latest revision as of 01:53, 29 July 2024

Component image 
RectTransformLerp component as seen in the Scene Inspector


The RectTransformLerp component takes the RectTransform that's on the same slot and lerps the size & scale of the RectTransform.

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.
Lerp Float The amount to lerp by.
SourceRect RectTransform The RectTransform to lerp.

Usage

Examples

Related Components