format
typescript
RectTransform.bottomclass: RectTransform
description
The distance from the bottom edge of the transform matrix to the bottom edge of its parent.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The distance from the bottom edge of the transform matrix to the bottom edge of its parent. |
code example
typeScript
let go = new GameObject("ui");
let uiComponent = go.AddComponent<UIComponent>(UIComponent);
let canvas = uiComponent.canvas;
let button = canvas.FindChild("Button");
let rectTransform = button.rectTransform;
rectTransform.bottom;