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>
  • Attach masks container to this canvas layer and create tile occlusion and vision masks.

    Returns Promise<void>