[ type ] Size
Description:
Represents the size of a 2D object. Used when setting or getting the size of UI component, Shape size, and more.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
number | The width dimension. |
|
number | The height dimension. |
Examples:
Example of a Size object:
const size = {width: 300, height: 200};
