FX Controller is the base class that all built-in FX use.
You should not normally create an instance of this class directly, but instead use one of the built-in FX that extend it.
new Controller(type, gameObject)
name | type | description |
---|---|---|
type | number |
The FX Type constant. |
gameObject | Phaser.GameObjects.GameObject |
A reference to the Game Object that has this fx. |
Toggle this boolean to enable or disable this effect, without removing and adding it from the Game Object.
Only works for Pre FX.
Post FX are always active.
A reference to the Game Object that owns this effect.
The FX_CONST type of this effect.
Destroys this FX Controller.
Sets the active state of this FX Controller.
A disabled FX Controller will not be updated.
name | type | description |
---|---|---|
value | boolean |
|
This FX Controller instance.