PokéRogue
    Preparing search index...

    Function addMask

    • Add an external mask filter whose mask object never changes after creation. The mask texture is rendered once and cached instead of being re-rendered every frame.

      Parameters

      • target: GameObject

        The GameObject to apply the mask to.

      • maskObject: GameObject

        The GameObject to use as the mask.

      • autoUpdate: boolean = false

        (default false) Whether to automatically update the mask when the mask object changes.

      Returns Mask

      The Mask controller; set needsUpdate = true on it after changing the mask object.