Skip to content

InspectorPlugin

Defined in: InspectorPlugin.ts:56

Installs an Inspector, reachable through context.resolve(InspectorKey) and, with debug: true, as window.__yage__.inspector.

DebugPlugin installs one too, so an engine with DebugPlugin does not need this plugin. Use it for an Inspector without the debug overlay: a headless test, a tool, or a build that has no renderer.

new InspectorPlugin(): InspectorPlugin

InspectorPlugin

readonly name: "inspector" = "inspector"

Defined in: InspectorPlugin.ts:57

Unique plugin name.

Plugin.name


readonly version: "1.0.0" = "1.0.0"

Defined in: InspectorPlugin.ts:58

Semantic version string.

Plugin.version

install(context): void

Defined in: InspectorPlugin.ts:62

Install services into the engine context. Called in topological order.

EngineContext

void

Plugin.install


onDestroy(): void

Defined in: InspectorPlugin.ts:66

Called when the engine is destroyed.

void

Plugin.onDestroy

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.