Skip to main content

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

PropertyTypeDescriptionDefined in
cameraPick<PerspectiveCamera, "getWorldPosition" | "getWorldQuaternion">The rendering camera; in XR the engine keeps it at the viewer pose.xrblocks-uiextensions/src/xrblocks.ts:31
kit?KitOptional UIKitML component kit(s).xrblocks-uiextensions/src/xrblocks.ts:33
sceneObject3DWhere windows are parented - an XR Blocks Script IS an Object3D.xrblocks-uiextensions/src/xrblocks.ts:29
xr?WebXRFrameAccessrenderer.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