tmObjectType

Category: Tilemap — Objects

Syntax:

tmObjectType:String(map:Int, layerName:String, index:Int)


Parameters

Returns

The type, empty if it has none.



Summary

Gets an object's type (Tiled also calls it its class).

See the Tilemaps guide.



Example
t = tmObjectType(map, "things", i)

BambooBasic © 2026 Michael Denathorn