Skip to content

format

typescript
RectTransform.anchorMin

class: RectTransform

description

The normalized position to which the RectTransform's bottom-left corner is anchored.

parameter

param_nametypedescription

reture

typedescription
Vector2The anchor point at the bottom-left corner.

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.anchorMin;