Lua
C++
Edit

CreateTile

This function creates a new tile for 2D drawing. Tiles can be rectangles or text.

Syntax

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

Returns a new tile.

Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation