Skip to main content

Interface: XrSessionLike

Defined in: threejs-environment/src/xr.ts:115

Properties

PropertyModifierTypeDescriptionDefined in
depthUsage?readonlystring"cpu-optimized" or "gpu-optimized", once depth sensing is granted.threejs-environment/src/xr.ts:120
enabledFeatures?readonlyreadonly string[]-threejs-environment/src/xr.ts:116
inputSources?readonlyIterable<XrInputSourceLike, any, any>Live: sources come and go as hands are seen and controllers sleep.threejs-environment/src/xr.ts:118
preferredReflectionFormat?readonlystring-threejs-environment/src/xr.ts:121

Methods

requestHitTestSource()?

optional requestHitTestSource(options: {
offsetRay?: unknown;
space: unknown;
}):
| Promise<{
cancel?: void;
}>
| undefined;

Defined in: threejs-environment/src/xr.ts:123

Parameters

ParameterType
options{ offsetRay?: unknown; space: unknown; }
options.offsetRay?unknown
options.spaceunknown

Returns

| Promise<{ cancel?: void; }> | undefined


requestLightProbe()?

optional requestLightProbe(options?: {
reflectionFormat?: string;
}): Promise<object>;

Defined in: threejs-environment/src/xr.ts:122

Parameters

ParameterType
options?{ reflectionFormat?: string; }
options.reflectionFormat?string

Returns

Promise<object>


requestReferenceSpace()?

optional requestReferenceSpace(type: string): Promise<unknown>;

Defined in: threejs-environment/src/xr.ts:127

Parameters

ParameterType
typestring

Returns

Promise<unknown>