setLayer(layer)
Sets the current layer to the given index.
Parameters
Name | Type | Description |
---|---|---|
layer | number | string | Phaser.TilemapLayer | The layer to set as current. |
- Source code: tilemap/Tilemap.js (Line 1223)
setLayer(layer)
Sets the current layer to the given index.
Name | Type | Description |
---|---|---|
layer | number | string | Phaser.TilemapLayer | The layer to set as current. |
Please login to continue.