phaser - v3.90.0
    Preparing search index...

    Class Controller

    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.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • type: number

        The FX Type constant.

      • gameObject: GameObject

        A reference to the Game Object that has this fx.

      Returns Controller

    Properties

    active: boolean

    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.

    gameObject: GameObject

    A reference to the Game Object that owns this effect.

    type: number

    The FX_CONST type of this effect.

    Methods

    • Destroys this FX Controller.

      Returns void

    • Sets the active state of this FX Controller.

      A disabled FX Controller will not be updated.

      Parameters

      • value: boolean

        true to enable this FX Controller, or false to disable it.

      Returns this