Class DebugLayer
Hierarchy
- DebugLayer
Index
Constructors
Properties
Accessors
Methods
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
-
scene: Scene
Defines the scene to inspect
Returns DebugLayer
-
Properties
Static InspectorURLSearch playground for InspectorURL
Define the url to get the inspector script from. By default it uses the babylonjs CDN.
Accessors
on Property Changed Observable
-
Observable triggered when a property is changed through the inspector.
Returns any
Methods
hideSearch playground for hide
-
Hide the inspector and close its window.
Returns void
is VisibleSearch playground for isVisible
-
Get if the inspector is visible or not.
Returns boolean
true if visible otherwise, false
selectSearch playground for 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
-
Optional lineContainerTitles: string | string[]
defines the specific blocks to highlight (could be a string or an array of strings)
Returns void
-
set AsActive SceneSearch playground for setAsActiveScene
-
Update the scene in the inspector
Returns void
showSearch playground for show
-
Launch the debugLayer.
Parameters
-
Optional config: IInspectorOptions
Define 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
https://doc.babylonjs.com/features/playground_debuglayer