Class: PluginManager

Phaser. PluginManager

Phaser - PluginManager

new PluginManager(game, parent)

Description.

Parameters:
Name Type Description
game Phaser.Game

A reference to the currently running game.

parent Description

Description.

Source:

Members

game

Properties:
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source:

plugins

Properties:
Name Type Description
plugins array

Description.

Source:

Methods

add(plugin) → {Phaser.Plugin}

Add a new Plugin to the PluginManager. The plugin's game and parent reference are set to this game and pluginmanager parent.

Parameters:
Name Type Description
plugin Phaser.Plugin

Description.

Source:
Returns:

Description.

Type
Phaser.Plugin

destroy()

Clear down this PluginManager and null out references

Source:

postRender()

Post-render is called after the Game Renderer and State.render have run. It only calls plugins who have visible=true.

Source:

preUpdate()

Pre-update is called at the very start of the update cycle, before any other subsystems have been updated (including Physics). It only calls plugins who have active=true.

Source:

remove(plugin)

Remove a Plugin from the PluginManager.

Parameters:
Name Type Description
plugin Phaser.Plugin

The plugin to be removed.

Source:

render()

Render is called right after the Game Renderer completes, but before the State.render. It only calls plugins who have visible=true.

Source:

update()

Update is called after all the core subsystems (Input, Tweens, Sound, etc) and the State have updated, but before the render. It only calls plugins who have active=true.

Source:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Fri Oct 25 2013 16:16:48 GMT+0100 (BST) using the DocStrap template.