Phaser API Documentation

  Version: 
start(key, [runAs])

Description:

Starts a global plugin running.

If the plugin was previously active then calling start will reset it to an active state and then call its start method.

If the plugin has never been run before a new instance of it will be created within the Plugin Manager, its active state set and then both of its init and start methods called, in that order.

If the plugin is already running under the given key then nothing happens.

Parameters:

name type arguments description
key string

The key of the plugin to start.

runAs string <optional>

Run the plugin under a new key. This allows you to run one plugin multiple times.

Returns:
Description:

The plugin that was started, or null if invalid key given or plugin is already stopped.

Since: 3.8.0