Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DebugLayer

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

see

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

Hierarchy

  • DebugLayer

Index

Constructors

constructor

Properties

Static InspectorURLSearch playground for InspectorURL

InspectorURL: string

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

ignorenaming

Accessors

onPropertyChangedObservable

  • get onPropertyChangedObservable(): any
  • Observable triggered when a property is changed through the inspector.

    Returns any

onSelectionChangedObservable

  • get onSelectionChangedObservable(): any
  • Observable triggered when the selection is changed through the inspector.

    Returns any

Methods

hideSearch playground for hide

  • hide(): void
  • Hide the inspector and close its window.

    Returns void

isVisibleSearch playground for isVisible

  • isVisible(): boolean
  • Get if the inspector is visible or not.

    Returns boolean

    true if visible otherwise, false

selectSearch playground for select

  • select(entity: any, lineContainerTitles?: string | string[]): void
  • Select a specific entity in the scene explorer and highlight a specific block in that entity property grid

    Parameters

    • entity: any

      defines the entity to select

    • Optional lineContainerTitles: string | string[]

      defines the specific blocks to highlight (could be a string or an array of strings)

    Returns void

setAsActiveSceneSearch playground for setAsActiveScene

  • setAsActiveScene(): void
  • Update the scene in the inspector

    Returns void

showSearch playground for show

  • Launch the debugLayer.

    Parameters

    Returns Promise<DebugLayer>

    a promise fulfilled when the debug layer is visible

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method