Phaser API Documentation

  Version: 
getTilesetIndex(name)

Description:

Gets the index of the Tileset within this.tilesets that has the given name, or null if an invalid name is given.

Parameters:

name type description
name string

The name of the Tileset to get.

Returns:
Description:

The Tileset index within this.tilesets.

Type:
  • number
Since: 3.0.0
Source: src/tilemaps/Tilemap.js (Line 1458)