Skip to content

UIPlugin

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

UIPlugin loads Yoga, installs UI defaults, 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(options?): UIPlugin

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

UIPluginOptions = {}

UIPlugin

readonly dependencies: string[]

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

Names of plugins this plugin depends on.

Plugin.dependencies


readonly name: "ui" = "ui"

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

Unique plugin name.

Plugin.name


readonly version: "3.0.0" = "3.0.0"

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

Semantic version string.

Plugin.version

install(context): Promise<void>

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

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

EngineContext

Promise<void>

Plugin.install


onDestroy(): void

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

Called when the engine is destroyed.

void

Plugin.onDestroy


registerSystems(scheduler): void

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

Register systems with the scheduler. Called after install.

SystemScheduler

void

Plugin.registerSystems

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/ui.md.