TiledMap Component Reference
TiledMap is used for render a map with TMX format. Add TiledMap component for a node and set a TiledMapAsset for property tmxAsset, then the map will be shown.

Click the button Add Component in the Properties Panel, then select TiledMap in Add Renderer Component. The TiledMap component will be added to the node.
API reference: TiledMap API。
TiledMap Attribute
| Attribute | Details |
|---|---|
| tmxAsset | Specify the asset of the TMX format map. |
Details
- When a TiledMap component is added, you can render a map by drag a TiledMapAsset from Assets panel to the property
tmxAssetof the component. - The TiledMap component will add children corresponding to the layers in the map. A TiledLayer component will be added for the children. Please DO NOT remove the TiledLayer component.
- In the versions before v1.1, you can only use TiledMap in/after callback
mapLoadedis invoked. After the version v1.1 (include v1.1),mapLoadedis deprecated. You can use TiledMap in callbackstart.
Continue on to read about Workflow of script development。