DebugLayer

The debug layer (aka Inspector) is the go to tool in order to better understand what is happening in your scene

see

http://doc.babylonjs.com/features/playground_debuglayer

Hierarchy

  • DebugLayer

Index

Constructors

constructor

Find examples in Playground

Properties

onPropertyChangedObservable

Find examples in Playground
onPropertyChangedObservable: Observable<object>

Observable triggered when a property is changed through the inspector.

Static InspectorURL

Find examples in Playground
InspectorURL: string

Define the url to get the inspector script from. By default it uses the babylonjs CDN.

ignorenaming

Methods

getActiveTab

Find examples in Playground
  • getActiveTab(): number
  • Gets the active tab

    Returns number

    the index of the active tab or -1 if the inspector is hidden

hide

Find examples in Playground
  • hide(): void
  • Hide the inspector and close its window.

    Returns void

isVisible

Find examples in Playground
  • isVisible(): boolean
  • Get if the inspector is visible or not.

    Returns boolean

    true if visible otherwise, false

show

Find examples in Playground
  • show(config?: object): void
  • Launch the debugLayer.

    initialTab: | Value | Tab Name | | --- | --- | | 0 | Scene | | 1 | Console | | 2 | Stats | | 3 | Textures | | 4 | Mesh | | 5 | Light | | 6 | Material | | 7 | GLTF | | 8 | GUI | | 9 | Physics | | 10 | Camera | | 11 | Audio |

    Parameters

    • Optional config: object

      Define the configuration of the inspector

      • Optional initialTab?: number | string
      • Optional newColors?: object
        • Optional backgroundColor?: string
        • Optional backgroundColorLighter?: string
        • Optional backgroundColorLighter2?: string
        • Optional backgroundColorLighter3?: string
        • Optional color?: string
        • Optional colorBot?: string
        • Optional colorTop?: string
      • Optional parentElement?: HTMLElement
      • Optional popup?: boolean

    Returns void

Generated using TypeDoc