Class DebugLayer
Constructors
constructor
-
Instantiates a new debug layer. The debug layer (aka Inspector) is the go to tool in order to better understand what is happening in your scene
Parameters
Optionalscene: SceneDefines the scene to inspect
Returns DebugLayer
Properties
StaticConfig
The default configuration of the inspector
StaticInspector URL
Define the url to get the inspector script from. By default it uses the babylonjs CDN.
Accessors
on Property Changed Observable
-
get onPropertyChangedObservable(): any
Observable triggered when a property is changed through the inspector.
Returns any
on Selection Changed Observable
-
get onSelectionChangedObservable(): any
Observable triggered when the selection is changed through the inspector.
Returns any
opened Panes
-
get openedPanes(): any
Get the number of opened panes in the inspector
Returns any
Methods
hide
-
Hide the inspector and close its window.
Returns void
is Visible
-
Get if the inspector is visible or not.
Returns boolean
true if visible otherwise, false
popup Embed
-
Pop up the embedded inspector panel
Returns void
popup Inspector
-
Pop up the inspector in a separate window
Returns void
popup Scene Explorer
-
Pop up the scene explorer in a separate window
Returns void
select
-
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
OptionallineContainerTitles: string | string[]defines the specific blocks to highlight (could be a string or an array of strings)
Returns void
- entity: any
set As Active Scene
-
Update the scene in the inspector
Returns void
show
-
Launch the debugLayer.
Parameters
Optionalconfig: IInspectorOptionsDefine the configuration of the inspector
Returns Promise<DebugLayer>
a promise fulfilled when the debug layer is visible
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/toolsAndResources/inspector