Phaser API Documentation

  Version: 
enable([padding])

Description:

Enables this FX Component and applies the FXPipeline to the parent Game Object.

This is called automatically whenever you call a method such as addBloom, etc.

You can check the enabled property to see if the Game Object is already enabled, or not.

This only applies to Pre FX. Post FX are always enabled.

Parameters:

name type arguments description
padding number <optional>

The amount of padding to add to this Game Object.

Since: 3.60.0