Skip to content
UITransform

UI / UITransform

UITransform Class

Transform

Table of contents

Properties

position: Vector2
position
size: Vector2
size

structure

Parameters

x numberUsage: position X range: no more than screen coordinates. For details of screen coordinates, see class Vector2 type: floating point
y numberPosition Y range: does not exceed the screen coordinates. For details on screen coordinates, please refer to class Vector2 type: floating-point number
w numberUsage: Size W wide range: unrestricted type: floating point number
h numberUsage: Size H high range: no restriction type: floating point number

new UITransform(xy, wh)

Construct through points

Parameters

xy Vector2Usage: position
wh Vector2Usage: Size

Properties

position

position: Vector2

position


size

size: Vector2

size