This function creates a new tile for 2D drawing. Tiles can be rectangles or text.
Parameter | Description |
---|---|
camera | camera the tile will appear on |
size, width, height | size of a rectangle tile |
wireframe | if set to true a line rectangle will be created, otherwise a solid rectangle will be created |
font | font to create a text tile with |
fontsize | font size to create a text tile with |
alignment | text alignment, can be any combination of TEXT_LEFT, TEXT_CENTER, TEXT_RIGHT, TEXT_TOP, TEXT_MIDDLE, and TEXT_BOTTOM |
linespacing | text spacing between multiple lines of text |
Returns a new tile.