scene-add-editable-tilemap
Add an editable tilemap to a scene with custom dimensions and tilesets, enabling tile data modifications directly in the scene editor.
Instructions
Add an editable tilemap to the scene. An editable tilemap is different to a Tiled map because all the data can be edited by the user in the scene editor. However, it follows many of the concepts of Tiled. The editable tilemap is also a plain object so you can manipulate it using most of the plain object tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Label of the object. It is used to name the object in the scene and as the variable name in code. | |
| width | Yes | The width of the editable tilemap in tiles. | |
| height | Yes | The height of the editable tilemap in tiles. | |
| sceneId | Yes | The `id` of the scene. The `id` is not the name of the scene, else a unique identifier is set in the scene data. You need to read the scene data to get the `id`. | |
| tilesets | Yes | The tilesets used by the tilemap. | |
| tileWidth | Yes | The width of each tile in pixels. | |
| tileHeight | Yes | The height of each tile in pixels. |