Component:RectTransformComputedProperties: Difference between revisions

From Resonite Wiki
This page is no longer a stub. Added descriptions.
remove Component stub
 
Line 16: Line 16:


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
Line 22: Line 23:
[[Category:Components:Debug{{#translation:}}|Rect Transform Computed Properties]]
[[Category:Components:Debug{{#translation:}}|Rect Transform Computed Properties]]
[[Category:Components{{#translation:}}|Rect Transform Computed Properties]]
[[Category:Components{{#translation:}}|Rect Transform Computed Properties]]
[[Category:ComponentStubs]]

Latest revision as of 21:53, 31 January 2025

Component image 
Rect Transform Computed Properties component as seen in the Scene Inspector


The RectTransformComputedProperties component is used to get the size of a UIX element that is contained in a slot that has a RectTransform. It takes in the RectTransform reference, and then returns a LocalComputerRect, which is the local bounds of the element, and returns the BoundingRect, which is the bounding rect itself (which can be larger than the local elements from within). Most of the time, both values would be the same, except for some situations.

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. Some components stop their functionality when this field is disabled, but some don't.
Rect RectTransform The rect transform component to reference from
LocalComputeRect raw output of Rect The local bounds of the element
BoundingRect raw output of Rect The bounding rect itself

Usage

This is used to get the size of the bounds of whatever is inside the RectTransform.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also

The RectTransform component is needed for this component to work.