TiledMap Component Reference
TiledMap is used for render a map with TMX format.
Click the Add Component button at the bottom of the Properties panel and select TiledMap from Renderer Component to add the TiledMap component to the node.
API reference: TiledMap API.
|Tmx Asset||Specify the asset of the TMX format map.|
- When a TiledMap component is added, you can render a map by drag a TiledMap asset from Assets panel to the property Tmx Asset of the TiledMap component.
After you add the Tmx Asset property to the TiledMap component, the TiledMap component will add children node corresponding to the layers in the map. A TiledLayer component will be added for the children node. Please DO NOT remove the TiledLayer component.
- The Tiledmap component does not support
mapLoadedcallback, you can use TiledMap component in callback
Continue on to read about Workflow of script development.