the object class
height of the object's tile in its tileset image, for a tile object from a tileset image (undefined otherwise)
width of the object's tile in its tileset image, for a tile object from a tileset image (undefined otherwise)
object gid value when defined the object is a tiled object
object height
object unique identifier per level (Tiled 0.11.x+)
object name
the object opacity (0-1), defaults to 1 (since Tiled 1.12)
object orientation (orthogonal or isometric)
point list in JSON format
The rotation of the object in radians clockwise (defaults to 0)
the collision shapes defined for this object
the detected shape type
object text
the tile of a tile object (one with a gid), undefined otherwise
tint color
object type
whether the object is visible, defaults to true
object width
object x position
object y position
object z order
Return the object's custom properties, including those it inherits from its tile (for a tile object), as Tiled resolves them: a property the object sets itself wins over its tile's. Each call returns a new object; the values themselves are not copied.
the resolved custom properties
Return the value of one custom property of the object, or else of its tile (for a tile object), as Tiled resolves it.
name of the custom property
the property's value, or undefined if neither the object nor its tile sets it
An object of a Tiled map, as read from the map. It is the
settingsthat a class registered with registerTiledObjectClass receives (and that a factory registered with registerTiledObjectFactory is given), before the object is turned into a renderable.The object's own custom properties are set on it by name. TMXObject#resolvedProperties and TMXObject#resolvedProperty also include those a tile object inherits from its tile, as Tiled shows them. A tile object with no class of its own is matched by its tile's class.
In TypeScript, declare the custom properties a class reads by extending this type.
Example