Options
All
  • Public
  • Public/Protected
  • All
Menu

A specialized canvas group for rendering hidden containers before all others (like masks).

Hierarchy

  • any
    • HiddenCanvasGroup

Index

Constructors

Properties

interactive: boolean
interactiveChildren: boolean
masks: Container = ...

The container which hold masks.

groupName: string = "hidden"
override

Methods

  • addMask(name: string, displayObject: DisplayObject, position: number): void
  • Add a mask to this group.

    Parameters

    • name: string

      Name of the mask.

    • displayObject: DisplayObject

      Display object to add.

    • position: number

    Returns void

  • draw(): Promise<void>
  • override

    Returns Promise<void>

  • tearDown(): Promise<void>
  • override

    Returns Promise<void>

  • #drawMasks(): Promise<void>
  • Perform necessary draw operations.

    Returns Promise<void>

  • #createMasks(): void
  • Attach masks container to this canvas layer and create tile occlusion, vision masks and depth mask.

    Returns void