Interface: IwsdkWindowHandle
Defined in: packages/iwsdk-uiextensions/src/scene-host.ts:91
A window spawned by IwsdkSceneHost.createWindow.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
entity | readonly | Entity | The ECS entity carrying PanelUI, UIWindow and the interaction tags. | - | packages/iwsdk-uiextensions/src/scene-host.ts:93 |
id | readonly | string | The window's id - the one passed in, or one the adapter generated. | WindowHandle.id | packages/webxr-uiextensions/src/adapter.ts:167 |
panel | readonly | PanelHandle | undefined | The live panel, or undefined until the adapter has attached the document. IWSDK loads and parses the markup over later frames; the three.js host interprets it during createWindow, so there it is set straight away. | WindowHandle.panel | packages/webxr-uiextensions/src/adapter.ts:174 |
Methods
onReady()
onReady(listener: (panel: PanelHandle) => void): () => void;
Defined in: packages/webxr-uiextensions/src/adapter.ts:180
Run listener once, when the panel is attached. Fires immediately if it
already is, so wiring order never matters. Returns an unsubscribe
function for the case where the caller gives up first.
Parameters
| Parameter | Type |
|---|---|
listener | (panel: PanelHandle) => void |
Returns
() => void