Gets the LayerData index of the given layer
within this.layers, or null if an invalid
layer
is given.
name | type | arguments | description |
---|---|---|---|
layer | string | number | Phaser.Tilemaps.TilemapLayer | <optional> |
The name of the layer from Tiled, the index of the layer in the map or a Tilemap Layer. If not given will default to the map's current layer index. |
The LayerData index within this.layers.