Phaser API Documentation

  Version: 
removeGameObject(key, [removeFromFactory], [removeFromCreator])

Description:

Removes a previously registered Game Object from the global Game Object Factory and / or Creator. This is usually called from within your Plugin destruction code to help clean-up after your plugin has been removed.

Parameters:

name type arguments Default description
key string

The key of the Game Object to be removed from the factories.

removeFromFactory boolean <optional> true

Should the Game Object be removed from the Game Object Factory?

removeFromCreator boolean <optional> true

Should the Game Object be removed from the Game Object Creator?

Examples:
Since: 3.19.0