scene-add-editable-tilemap-layer
Add a new layer to an editable tilemap, including an EditableLayer game object in the scene. Specify the layer's name, dimensions, and tile size.
Instructions
Add an editable tilemap layer to an editable tilemap. Because the complexity of the editable tilemaps, we provide a couple of dedicated tools. An editable tilemap is different to a Tiled map because all the data can be edited by the user in the scene editor. This method adds a layer to the tilemap data but also it adds an EditableLayer game object to the scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| 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`. | |
| tilemapId | Yes | The `id` of the editable tilemap to add the layer to. An 'editable tilemap' is not the same as a Tiled tilemap. |