| Parameter | Description |
|---|---|
| value | The target x coordinate for the right edge, in the parent's coordinate space. |
| preserveSize | When true (default), the element translates so the right edge reaches value while width is unchanged. When false, only the right edge moves: the left edge stays fixed and sizeDelta is adjusted to match the new width. |
Moves the right edge of this RectTransform to the specified position in its parent's coordinate space.
When preserveSize is true, adjusts anchoredPosition so that GetLocalRight returns value; the element's size (sizeDelta) and left edge are not affected. When preserveSize is false, the left edge remains at its current position and the width is resized to reach value.
Additional resources: GetLocalRight, SetLocalLeft.