Interface SceneOptions

possible options for scene constructor

interface SceneOptions {
    autoSort?: boolean;
    debug?: boolean | {
        debugBVHStroke?: DebugStroke;
        debugStroke?: DebugStroke;
    };
    label?: string;
    nodeMaxEntries?: number;
    showFPS?: string | boolean;
    view?: HTMLCanvasElement;
    visible?: boolean;
}

Hierarchy (view full)

Properties

autoSort?: boolean

enables zIndex (per-y) sort of sprites

debug?: boolean | {
    debugBVHStroke?: DebugStroke;
    debugStroke?: DebugStroke;
}

set to true to enable debug bounding boxes

Type declaration

  • OptionaldebugBVHStroke?: DebugStroke

    optional modify debug bvh stroke

  • OptionaldebugStroke?: DebugStroke

    optional modify debug stroke

label?: string

set name

nodeMaxEntries?: number

max size of group in collision tree

showFPS?: string | boolean

set to true to show pixi-stats set to string to show and set style set body font to set font of pixi-stats

view?: HTMLCanvasElement

pixi v6

visible?: boolean

show scene after creation