2.6k
  • getting started
  • tutorials
  • advanced
  • handles
  • migration
  • api
    • ARButton
    • CombinedPointer
    • createXRStore
    • DefaultXRController
    • DefaultXRControllerGrabPointer
    • DefaultXRGaze
    • DefaultXRHand
    • DefaultXRHandGrabPointer
    • DefaultXRHandTouchPointer
    • DefaultXRInputSourceRayPointer
    • DefaultXRInputSourceTeleportPointer
    • DefaultXRScreenInput
    • DefaultXRTransientPointer
    • IfFacingCamera
    • IfInSessionMode
    • IfSessionModeSupported
    • IfSessionVisible
    • Interactive
    • NotInXR
    • PointerCursorModel
    • PointerRayModel
    • RayGrab
    • ShowIfFacingCamera
    • ShowIfInSessionMode
    • ShowIfSessionModeSupported
    • ShowIfSessionVisible
    • TeleportTarget
    • UNSAFE_useXRStore
    • useApplyXRSpaceMatrix
    • useGetXRSpaceMatrix
    • useGrabPointer
    • useHover
    • useInitRoomCapture
    • useInteraction
    • useLinesPointer
    • useLoadXRControllerLayout
    • useLoadXRControllerModel
    • usePointerXRInputSourceEvents
    • useRayPointer
    • useRequestXRAnchor
    • useSessionFeatureEnabled
    • useSessionModeSupported
    • useTouchPointer
    • useXR
    • useXRAnchor
    • useXRControllerButtonEvent
    • useXRControllerLocomotion
    • useXRControllerState
    • useXREvent
    • useXRGazeState
    • useXRHandState
    • useXRHitTest
    • useXRHitTestSource
    • useXRInputSourceEvent
    • useXRMeshes
    • useXRMeshGeometry
    • useXRPlaneGeometry
    • useXRPlanes
    • useXRReferenceSpace
    • useXRRequestHitTest
    • useXRScreenInputState
    • useXRSessionFeatureEnabled
    • useXRSessionModeSupported
    • useXRSessionVisibilityState
    • useXRSpace
    • useXRStore
    • useXRTransientPointerState
    • VRButton
    • XR
    • XRButton
    • XRControllerComponent
    • XRControllerModel
    • XRDomOverlay
    • XRHandJoint
    • XRHandModel
    • XRHitTest
    • XRLayer
    • XRMeshModel
    • XROrigin
    • XRPlaneModel
    • XRSpace
    • XRSpaceType
  • main@fa0ebddmain

createXRStore

createXRStore(options?): XRStore<XRElementImplementation>

Starting point for each XR application. Allows to configure the session's features and defaults such as what controllers are rendered and how they can interact with the scene

Parameters

options?

XRStoreOptions

Returns


XRStore<XRElementImplementation>

A new XR store

packages/react/xr/src/xr.tsx

Edit this page

CombinedPointer
DefaultXRController

On this page

  • Parameters
  • Returns
Sponsor Poimandres

Poimandres is an open source developer collective.

Your sponsorship keeps react-three-fiber, drei, zustand and friends free and maintained.

Sponsor on GitHub