Skip to content

UIPlugin

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

UIPlugin loads Yoga, wires the AssetManager for UI-specific texture assets, and registers the layout system. UI entities attach to the active scene’s render tree via this.use(SceneRenderTreeKey) — no dedicated global screen container is created.

  • Plugin

new UIPlugin(): UIPlugin

UIPlugin

readonly dependencies: string[]

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

Names of plugins this plugin depends on.

Plugin.dependencies


readonly name: "ui" = "ui"

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

Unique plugin name.

Plugin.name


readonly version: "3.0.0" = "3.0.0"

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

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


registerSystems(scheduler): void

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

Register systems with the scheduler. Called after install.

SystemScheduler

void

Plugin.registerSystems