Phaser API Documentation

  Version: 
<private> createEntry(key, [runAs])

Description:

Creates a new instance of a global plugin, adds an entry into the plugins array and returns it.

Parameters:

name type arguments description
key string

The key of the plugin to create an instance of.

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.

Examples:
Since: 3.9.0