At its simplest, layers can be retrieved from a Tilemap by invoking:
getLayer<ObjectGroup>("myObjectGroupLayer"); getLayer<ImageLayer>("myImageLayer"); getLayer<TileLayer>("myTileLayer"); getLayer<Group>("myGroupLayer");
These methods will either return the requested layer type or null if it does not exist.
The following Tiled properties are supported:
Tiles can have custom properties accessible at
Tiles can have a custom
classstarting in Tiled v1.9) accessible at
Other advanced features are not yet supported, but you can easily read the objects and other features of the TMX and add custom behavior (eg regions for triggers and walking areas, custom animated objects).
You can check a working example here.