Creates the inspector and shows its panel. The panel is appended to the document body and follows the app until destroy is called, or the app is destroyed.
The app to inspect.
Optionaloptions: InspectorOptions = {}
The options.
Called with the new visibility whenever the panel is shown or hidden, whether through visible, the toggle key or the panel's own close button. Set from the InspectorOptions#onVisibleChange option, or assigned later.
Whether the app is paused. Pausing sets AppBase#timeScale to zero and suspends the sound manager; resuming restores the time scale that was in effect.
Whether the panel is shown. Toggled by the toggle key.
An in-page inspector for a running application. It docks a panel over the canvas with four tabs above a live property view of whatever is selected:
The app can be paused and stepped a frame at a time, and the panel can be popped out into its own window to leave the canvas unobscured.
The view is read-only, with one exception: the checkbox on each hierarchy row flips the node's enabled flag.
Default keys: backquote toggles the panel, F9 pauses and resumes, F10 steps one frame while paused. Pausing sets AppBase#timeScale to zero and suspends the sound manager, so rendering continues while every time-driven system stands still. Scripts that read the wall clock rather than the frame delta keep moving.
The property view is generic: it reflects on the public getters of each component and script, so components it has never heard of show up with all of their state.