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