> For the complete documentation index, see [llms.txt](https://docs.overthereality.ai/over-sdk-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overthereality.ai/over-sdk-manual/over-visual-scripting-legacy/nodes/components/ui/recttransform.md).

# RectTransform

### Description

A RectTransform [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to handle the position, rotation, and scale of an object inside a Unity Canvas, by interacting with the Unity3D [RectTransform](https://docs.unity3d.com/ScriptReference/RectTransform.html) Component.

Inheriting much of its behaviour from the [Transform](https://docs.unity3d.com/ScriptReference/Transform.html) Component, RectTransform focuses on handling GUI elements.

#### RectTransform Exposer

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to expose certain parameters and attributes of a given input Unity 3D [RectTransform](https://docs.unity3d.com/ScriptReference/RectTransform.html) Component, which are:

<table><thead><tr><th>Name</th><th width="204.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Ref</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component.</td></tr><tr><td>Anchor Position</td><td>Vector2</td><td>The position of the pivot of this RectTransform relative to the anchor reference point.</td></tr><tr><td>Anchor Min</td><td>Vector2</td><td>The normalized position in the parent RectTransform that the lower left corner is anchored to.</td></tr><tr><td>Anchor Max</td><td>Vector2</td><td>The normalized position in the parent RectTransform that the upper right corner is anchored to.</td></tr><tr><td>Size</td><td>Vector2</td><td>The size of this RectTransform relative to the distances between the anchors.</td></tr><tr><td>Pivot</td><td>Vector2</td><td>The normalized position in this RectTransform that it rotates around.</td></tr><tr><td>Position</td><td>Vector3</td><td>The world space position of the Transform </td></tr><tr><td>Rotation</td><td>Quaternion</td><td>The world space rotation of the Transform </td></tr><tr><td>Scale</td><td>Vector3</td><td>The scale of the Transform relative to its parent Transform </td></tr><tr><td>Local Position</td><td>Vector3</td><td>The position of the Transform relative to its parent Transform </td></tr><tr><td>Local Rotation</td><td>Quaternion</td><td>The rotation of the Transform relative to its parent Transform </td></tr><tr><td>Lossy Scale</td><td>Vector3</td><td>The global scale of the object</td></tr></tbody></table>

<figure><img src="/files/3QxYnUVr8f3UK3b4G4w4" alt=""><figcaption></figcaption></figure>

#### Set Rect Position

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to modify an existing RectTransform Component, by setting its position. A `Space` parameter can be selected to instruct the node either to set in`Local Space` or `World Space`.

This Flow [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) accepts the following input data:

<table><thead><tr><th width="205.7659040188865">Name</th><th>Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>RectTransform</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component</td></tr><tr><td>Position</td><td>Vector3</td><td>Position value to be set</td></tr><tr><td>Space</td><td>Enum </td><td>Local or World space</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Updated Component</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the updated Unity3D Transform Component</td></tr></tbody></table>

<figure><img src="/files/vksBiWEDfI3DIMKejfn9" alt=""><figcaption></figcaption></figure>

#### Set Rect Rotation

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to modify an existing RectTransform Component, by setting its rotation. A `Space` parameter can be selected to instruct the node either to set in`Local Space` or `World Space`.

This Flow [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) accepts the following input data:

<table><thead><tr><th width="205.7659040188865">Name</th><th>Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>RectTransform </td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component</td></tr><tr><td>Rotation</td><td>Quaternion</td><td>Rotation value to be set</td></tr><tr><td>Space</td><td>Enum </td><td>Local or World space</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Updated Component</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the updated Unity3D Transform Component</td></tr></tbody></table>

<figure><img src="/files/Jvwlco3HIqAIDVgnYxB5" alt=""><figcaption></figcaption></figure>

#### Set Scale

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to modify an existing RectTransform Component, by setting its local scale.

This Flow [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) accepts the following input data:

<table><thead><tr><th width="205.7659040188865">Name</th><th>Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>RectTransform </td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component</td></tr><tr><td>Scale</td><td>Vector3</td><td>Scale value to be set</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Updated Component</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the updated Unity3D RectTransform Component</td></tr></tbody></table>

<figure><img src="/files/6FUP9VqtooYLt5IhWd0q" alt=""><figcaption></figcaption></figure>

#### Set Rect Anchor

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to modify an existing RectTransform Component, by setting its anchor value. An `Anchor Type` parameter can be selected to instruct the node either to set its anchored position – anchor min or anchor max.

This Flow [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) accepts the following input data:

<table><thead><tr><th width="205.7659040188865">Name</th><th>Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>RectTransform </td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component</td></tr><tr><td>Anchor </td><td>Vector2</td><td>Anchor value to be set</td></tr><tr><td>Anchor Type</td><td>Enum</td><td>Either Position, Min or Max</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Updated Component</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the updated Unity3D RectTransform Component</td></tr></tbody></table>

<figure><img src="/files/e6BmHaS4IeaZiwGTpvFF" alt=""><figcaption></figcaption></figure>

#### Set Rect Pivot

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to modify an existing RectTransform Component, by setting its pivot point.

This Flow [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) accepts the following input data:

<table><thead><tr><th width="205.7659040188865">Name</th><th>Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>RectTransform </td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component</td></tr><tr><td>Pivot</td><td>Vector2</td><td>Pivot value to be set</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Updated Component</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the updated Unity3D RectTransform Component</td></tr></tbody></table>

<figure><img src="/files/d1QMjuuf1BOZnszx9Lst" alt=""><figcaption></figcaption></figure>

#### Set Rect Size

This [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) is used to modify an existing RectTransform Component, by setting its Rect size.

This Flow [OverNode](/over-sdk-manual/over-visual-scripting-legacy/visual-scripting-essentials/overnode.md) accepts the following input data:

<table><thead><tr><th width="205.7659040188865">Name</th><th>Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>RectTransform </td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the input Unity3D RectTransform Component</td></tr><tr><td>Size</td><td>Vector2</td><td>Size value to be set</td></tr></tbody></table>

and produces the following output data:

<table><thead><tr><th width="186.7659040188865">Name</th><th width="207.3279424240331">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>Updated Component</td><td><a href="https://docs.unity3d.com/ScriptReference/RectTransform.html">RectTransform</a></td><td>A reference of the updated Unity3D RectTransform Component</td></tr></tbody></table>

<figure><img src="/files/a9aSeesXyK71LH6QMtQ8" alt=""><figcaption></figcaption></figure>
