Phaser API Documentation

<protected> addToScene(sys, globalPlugins, scenePlugins)


Called by the Scene Systems class. Tells the plugin manager to install all Scene plugins into it.

First it will install global references, i.e. references from the Game systems into the Scene Systems (and Scene if mapped.) Then it will install Core Scene Plugins followed by Scene Plugins registered with the PluginManager. Finally it will install any references to Global Plugins that have a Scene mapping property into the Scene itself.


name type description
sys Phaser.Scenes.Systems

The Scene Systems class to install all the plugins in to.

globalPlugins array

An array of global plugins to install.

scenePlugins array

An array of scene plugins to install.

Since: 3.8.0