Phaser API Documentation

  Version: 

Member of: Phaser.Structs.List

getIndex(child)

Description:

Locates an item within the List and returns its index.

Parameters:

name type description
child *

The item to locate.

Returns:
Description:

The index of the item within the List, or -1 if it's not in the List.

Type:
  • number
Since: 3.0.0
Source: src/structs/List.js (Line 167)