Phaser API Documentation

  Version: 
get(key, [autoStart])

Description:

Gets a global plugin from the Plugin Manager based on the given key and returns it.

If it cannot find an active plugin based on the key, but there is one in the Plugin Cache with the same key, then it will create a new instance of the cached plugin and return that.

Parameters:

name type arguments Default description
key string

The key of the plugin to get.

autoStart boolean <optional> true

Automatically start a new instance of the plugin if found in the cache, but not actively running.

Returns:
Description:

The plugin, or null if no plugin was found matching the key.

Type:
Since: 3.8.0