Phaser API Documentation

  Version: 
<protected> getIndex(key)

Description:

Gets an index of a global plugin based on the given key.

Parameters:

name type description
key string

The unique plugin key.

Returns:
Description:

The index of the plugin within the plugins array.

Type:
  • number
Since: 3.8.0