Skip to main content

Interface: BabylonRuntimeAdapterOptions

Defined in: service-framework-babylon/src/babylon-runtime-adapter.ts:127

Properties

PropertyModifierTypeDescriptionDefined in
host?readonlyBabylonEngineHostLikeThe Babylon Engine, or anything else with runRenderLoop. Given one, the adapter owns the loop: BabylonRuntimeAdapter.start binds it and each callback becomes a frame. Omit it to drive frames yourself with BabylonRuntimeAdapter.emitFrame.service-framework-babylon/src/babylon-runtime-adapter.ts:140
referenceSpaceType?readonlystringThe reference space to enter with. Defaults to "local-floor".service-framework-babylon/src/babylon-runtime-adapter.ts:148
scheduler?readonlyISchedulerGiven a scheduler, each owned frame also emits the renderTick channel with source: "babylon", exactly as BabylonRenderLoopBridge does, so an app needs one loop owner rather than two.service-framework-babylon/src/babylon-runtime-adapter.ts:146
sessionInit?readonly(mode: SessionMode) => unknownSupplies the XRSessionInit for a mode - required and optional features. Called once per request; the default sends no init at all.service-framework-babylon/src/babylon-runtime-adapter.ts:153
xr?readonlyBabylonXRExperienceLike | nullWebXRDefaultExperience.baseExperience. Omit it, or pass null, on a build with no XR at all: every session request then reports "unsupported" and capabilities stay at the all-false defaults.service-framework-babylon/src/babylon-runtime-adapter.ts:133