Type alias Debugger

Debugger: {
    dispose: (() => void);
    domElement: HTMLElement;
    enabled: boolean;
    gameStats: GameStats;
    gui: GUI;
    guiFolders: DebugFolders;
    params: DebugParams;
    renderer: Renderer;
    statsGL: Stats;
    update: ((delta) => void);
}

Debugger based on lil-gui. The debugger makes a floating panel for controllers.

Type declaration

  • dispose: (() => void)
      • (): void
      • Returns void

  • domElement: HTMLElement

    The DOM element that the debugger is attached to.

  • enabled: boolean

    Whether the debugger is enabled or not. It's always enabled when developing locally.

    Otherwise, set debug=true in localStorage to enable it.

  • gameStats: GameStats

    The stats instance.

  • gui: GUI

    The GUI instance.

  • guiFolders: DebugFolders

    The GUI folders.

  • params: DebugParams

    The debug parameters.

  • renderer: Renderer

    Renderer instance.

  • statsGL: Stats
  • update: ((delta) => void)
      • (delta): void
      • Call this on every frame to update the debugger.

        Parameters

        • delta: number

        Returns void

Generated using TypeDoc