Static method called directly by the Game Object creator functions.
With this method you can register a custom GameObject factory in the GameObjectCreator,
providing a name (factoryType
) and the constructor (factoryFunction
) in order
to be called when you invoke Phaser.Scene.make[ factoryType ] method.
name | type | description |
---|---|---|
factoryType | string |
The key of the factory that you will use to call to Phaser.Scene.make[ factoryType ] method. |
factoryFunction | function |
The constructor function to be called when you invoke to the Phaser.Scene.make method. |