Skip to content

UIPlugin

Defined in: ui/src/UIPlugin.ts:11

UIPlugin creates a screen-space UI container and registers the layout system.

  • Plugin

new UIPlugin(): UIPlugin

UIPlugin

readonly dependencies: string[]

Defined in: ui/src/UIPlugin.ts:14

Names of plugins this plugin depends on.

Plugin.dependencies


readonly name: "ui" = "ui"

Defined in: ui/src/UIPlugin.ts:12

Unique plugin name.

Plugin.name


readonly version: "2.0.0" = "2.0.0"

Defined in: ui/src/UIPlugin.ts:13

Semantic version string.

Plugin.version

install(context): Promise<void>

Defined in: ui/src/UIPlugin.ts:18

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

EngineContext

Promise<void>

Plugin.install


onDestroy(): void

Defined in: ui/src/UIPlugin.ts:40

Called when the engine is destroyed.

void

Plugin.onDestroy


registerSystems(scheduler): void

Defined in: ui/src/UIPlugin.ts:36

Register systems with the scheduler. Called after install.

SystemScheduler

void

Plugin.registerSystems