UI / UITransform
UITransform Class
Transform
Table of contents
Properties
position: Vector2 |
---|
position |
size: Vector2 |
size |
structure
Parameters
x number | Usage: position X range: no more than screen coordinates. For details of screen coordinates, see class Vector2 type: floating point |
---|---|
y number | Position Y range: does not exceed the screen coordinates. For details on screen coordinates, please refer to class Vector2 type: floating-point number |
w number | Usage: Size W wide range: unrestricted type: floating point number |
h number | Usage: Size H high range: no restriction type: floating point number |
• new UITransform(xy
, wh
)
Construct through points
Parameters
xy Vector2 | Usage: position |
---|---|
wh Vector2 | Usage: Size |
Properties
position
• position: Vector2
position
size
• size: Vector2
size