Phaser API Documentation

  Version: 
<static> registerCustom(key, plugin, mapping, data)

Description:

Stores a custom plugin in the global plugin cache. The key must be unique, within the scope of the cache.

Parameters:

name type description
key string

A reference used to get this plugin from the plugin cache.

plugin function

The plugin to be stored. Should be the core object, not instantiated.

mapping string

If this plugin is to be injected into the Scene Systems, this is the property key map used.

data any

A value to be passed to the plugin's init method.

Examples:
Since: 3.8.0