Phaser API Documentation

  Version: 
clear()

Description:

Destroys and removes all FX Controllers that are part of this FX Component, then disables it.

If this is a Pre FX Component it will only remove Pre FX. If this is a Post FX Component it will only remove Post FX.

To remove both at once use the GameObject.clearFX method instead.

Returns:
Description:

This Game Object instance.

Since: 3.60.0