Phaser API Documentation

  Version: 
getImageIndex(name)

Description:

Gets the image layer index based on its name.

Parameters:

name type description
name string

The name of the image to get.

Returns:
Description:

The index of the image in this tilemap, or null if not found.

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