The '''RectTransformComputedProperties''' component is used to get the size of a [[UIX]] element that is contained in a [[Component:RectTransform|RectTransform]]. It takes in the RectTransform reference, and then returns a <code>LocalComputerRect</code>, which is the local bounds of the element, and returns the <code>BoundingRect</code>, 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.
The '''RectTransformComputedProperties''' component is used to get the size of a [[UIX]] element that is contained in a [[Slot|slot]] that has a [[Component:RectTransform|RectTransform]]. It takes in the RectTransform reference, and then returns a <code>LocalComputerRect</code>, which is the local bounds of the element, and returns the <code>BoundingRect</code>, 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.
== Usage ==
== Usage ==
Revision as of 14:22, 21 June 2024
Component image
Rect Transform Computed Properties component as seen in the Scene Inspector
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
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.