Phaser API Documentation

  Version: 
add(fx, [config])

Description:

Adds the given FX Controler to this FX Component.

Note that adding an FX Controller does not remove any existing FX. They all stack-up on-top of each other. If you don't want this, make sure to call either remove or clear first.

Parameters:

name type arguments description
fx Phaser.FX.Controller

The FX Controller to add to this FX Component.

config object <optional>

Optional configuration object that is passed to the pipeline during instantiation.

Returns:
Description:

The FX Controller.

Since: 3.60.0