Types.Plugins

Phaser.Types.Plugins

CorePluginContainer

staticCorePluginContainer

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

staticCustomPluginContainer

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

staticGlobalPlugin

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