Destroys the given TilemapLayer and removes it from this Tilemap.
If no layer is specified, the maps current layer is used.
name | type | arguments | description |
---|---|---|---|
layer | string | number | Phaser.Tilemaps.TilemapLayer | <optional> |
The tile layer to be destroyed. |
Returns this, or null if the layer given was invalid.