UIPlugin
Defined in: ui/src/UIPlugin.ts:28
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.
Implements
Section titled “Implements”Plugin
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UIPlugin(
options?):UIPlugin
Defined in: ui/src/UIPlugin.ts:40
Parameters
Section titled “Parameters”options?
Section titled “options?”UIPluginOptions = {}
Returns
Section titled “Returns”UIPlugin
Properties
Section titled “Properties”dependencies
Section titled “dependencies”
readonlydependencies:string[]
Defined in: ui/src/UIPlugin.ts:31
Names of plugins this plugin depends on.
Implementation of
Section titled “Implementation of”Plugin.dependencies
readonlyname:"ui"="ui"
Defined in: ui/src/UIPlugin.ts:29
Unique plugin name.
Implementation of
Section titled “Implementation of”Plugin.name
version
Section titled “version”
readonlyversion:"3.0.0"="3.0.0"
Defined in: ui/src/UIPlugin.ts:30
Semantic version string.
Implementation of
Section titled “Implementation of”Plugin.version
Methods
Section titled “Methods”install()
Section titled “install()”install(
context):Promise<void>
Defined in: ui/src/UIPlugin.ts:44
Install services into the engine context. Called in topological order.
Parameters
Section titled “Parameters”context
Section titled “context”EngineContext
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Plugin.install
onDestroy()
Section titled “onDestroy()”onDestroy():
void
Defined in: ui/src/UIPlugin.ts:75
Called when the engine is destroyed.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Plugin.onDestroy
registerSystems()
Section titled “registerSystems()”registerSystems(
scheduler):void
Defined in: ui/src/UIPlugin.ts:70
Register systems with the scheduler. Called after install.
Parameters
Section titled “Parameters”scheduler
Section titled “scheduler”SystemScheduler
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Plugin.registerSystems