# SetLocalBottom(float, bool)

> Moves the bottom edge of this RectTransform to the specified position in its parent's coordinate space.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void SetLocalBottom(float value, bool preserveSize = true)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The target y coordinate for the bottom edge, in the parent's coordinate space.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): When true (default), the element translates so the bottom edge reaches `value` while height is unchanged. When false, only the bottom edge moves: the top edge stays fixed and [RectTransform.sizeDelta](/engine/6000.7/script-reference/unityengine/recttransform/sizedelta.md) is adjusted to match the new height.

### Remarks

When `preserveSize` is true, adjusts [RectTransform.anchoredPosition](/engine/6000.7/script-reference/unityengine/recttransform/anchoredposition.md) so that [RectTransform.GetLocalBottom](/engine/6000.7/script-reference/unityengine/recttransform/getlocalbottom.md) returns `value`; the element's size ([RectTransform.sizeDelta](/engine/6000.7/script-reference/unityengine/recttransform/sizedelta.md)) and top edge are not affected. When `preserveSize` is false, the top edge remains at its current position and the height is resized to reach `value`.

Additional Resources: [RectTransform.GetLocalBottom](/engine/6000.7/script-reference/unityengine/recttransform/getlocalbottom.md), [RectTransform.SetLocalTop](/engine/6000.7/script-reference/unityengine/recttransform/setlocaltop.md).
