@threlte/xr
Version:
Tools to more easily create VR and AR experiences with Threlte
11 lines (10 loc) • 305 B
TypeScript
import type { Group } from 'three';
interface Context {
current: Group | undefined;
}
/**
* Returns XR-scoped origin state for the current `<XR>` tree. `current` is the
* mounted `<XROrigin>` group when present, otherwise `undefined`.
*/
export declare const useXROrigin: () => Context;
export {};