installInspector
installInspector(
context): () =>void
Defined in: InspectorPlugin.ts:21
Install an Inspector on the engine that owns context, and return
the function that removes it again.
The installer registers the Inspector under InspectorKey, records
each scene’s events while the event log is on, and expires
events.waitFor deadlines at the end of every frame. With debug: true,
window.__yage__.inspector reads it.
When an Inspector is already registered, nothing is installed and the
returned function does nothing: the installer that created it removes it.
DebugPlugin and InspectorPlugin both go through here, so an engine
that uses both gets one Inspector whichever installs first.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”() => void
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.