Interface: XrSessionLike
Defined in: threejs-environment/src/xr.ts:115
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
depthUsage? | readonly | string | "cpu-optimized" or "gpu-optimized", once depth sensing is granted. | threejs-environment/src/xr.ts:120 |
enabledFeatures? | readonly | readonly string[] | - | threejs-environment/src/xr.ts:116 |
inputSources? | readonly | Iterable<XrInputSourceLike, any, any> | Live: sources come and go as hands are seen and controllers sleep. | threejs-environment/src/xr.ts:118 |
preferredReflectionFormat? | readonly | string | - | 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
| Parameter | Type |
|---|---|
options | { offsetRay?: unknown; space: unknown; } |
options.offsetRay? | unknown |
options.space | unknown |
Returns
| Promise<{
cancel?: void;
}>
| undefined
requestLightProbe()?
optional requestLightProbe(options?: {
reflectionFormat?: string;
}): Promise<object>;
Defined in: threejs-environment/src/xr.ts:122
Parameters
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
type | string |
Returns
Promise<unknown>