Skip to main content
Version: Phaser v4.0.0-rc.6

Types.Plugins

CorePluginContainer

<static> CorePluginContainer

nametypeoptionaldefaultdescription
keystringNoThe unique name of this plugin in the core plugin cache.
pluginfunctionNoThe plugin to be stored. Should be the source object, not instantiated.
mappingstringYesIf this plugin is to be injected into the Scene Systems, this is the property key map used.
custombooleanYesfalseCore Scene plugin or a Custom Scene plugin?

Type: object

Member of: Phaser.Types.Plugins

Source: src/plugins/typedefs/CorePluginContainer.js#L1
Since: 3.8.0


CustomPluginContainer

<static> CustomPluginContainer

nametypeoptionaldescription
keystringNoThe unique name of this plugin in the custom plugin cache.
pluginfunctionNoThe plugin to be stored. Should be the source object, not instantiated.

Type: object

Member of: Phaser.Types.Plugins

Source: src/plugins/typedefs/CustomPluginContainer.js#L1
Since: 3.8.0


GlobalPlugin

<static> GlobalPlugin

nametypeoptionaldescription
keystringNoThe unique name of this plugin within the plugin cache.
pluginfunctionNoAn instance of the plugin.
activebooleanYesIs the plugin active or not?
mappingstringYesIf this plugin is to be injected into the Scene Systems, this is the property key map used.

Type: object

Member of: Phaser.Types.Plugins

Source: src/plugins/typedefs/GlobalPlugin.js#L1
Since: 3.0.0