Constructor
new UITile(posopt, sizeopt, tileInfoopt, coloropt, angleopt, mirroropt)
Create a UITile object
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pos | Vector2 | <optional> | ||
size | Vector2 | <optional> | ||
tileInfo | TileInfo | <optional> | ||
color | Color | <optional> | WHITE | |
angle | number | <optional> | 0 | |
mirror | boolean | <optional> | false |
- Source
Extends
- UIObject
Members
angle
PropertiesType | Description |
---|---|
number | Angle to rotate in radians |
- Source
mirror
PropertiesType | Description |
---|---|
boolean | Should it be mirrored? |
- Source
tileInfo
PropertiesType | Description |
---|---|
TileInfo | Tile image to use |
- Source