UNPKG

@threlte/xr

Version:

Tools to more easily create VR and AR experiences with Threlte

16 lines (15 loc) 342 B
import { isPresenting, isHandTracking, session, xr } from '../internal/stores'; const stores = { isPresenting, isHandTracking, session, xrFrame: { get current() { return xr.current.getFrame(); } } }; /** * Provides access to context related to `<XR />`. */ export const useXR = () => stores;