Phaser API Documentation

  Version: 
getIndex(location, name)

Description:

Internally used. Returns the index of the object in one of the Tilemaps arrays whose name property matches the given name.

Parameters:

name type description
location array

The Tilemap array to search.

name string

The name of the array element to get.

Returns:
Description:

The index of the element in the array, or null if not found.

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