Interface: EngineContext
Defined in: xrblocks-uiextensions/src/xrblocks.ts:27
The slice of an XR Blocks Script / three.js app the host binds to.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
camera | Pick<PerspectiveCamera, "getWorldPosition" | "getWorldQuaternion"> | The rendering camera; in XR the engine keeps it at the viewer pose. | xrblocks-uiextensions/src/xrblocks.ts:31 |
kit? | Kit | Optional UIKitML component kit(s). | xrblocks-uiextensions/src/xrblocks.ts:33 |
scene | Object3D | Where windows are parented - an XR Blocks Script IS an Object3D. | xrblocks-uiextensions/src/xrblocks.ts:29 |
xr? | WebXRFrameAccess | renderer.xr, so hand menus can ride the tracked hands in a session. Leave it out on a desktop; hand-locked windows then follow the body. | xrblocks-uiextensions/src/xrblocks.ts:38 |