Skip to content

Releases: pmndrs/xr

v2.0.0

27 Jan 20:25
Compare
Choose a tag to compare

Breaking changes:

  • Hover, Select components are removed and replaced by Interactive component

Added:

  • <Interactive /> component - allows attaching event handlers to the content in the scene
  • useInteraction hook - attach events to an existing object in the scene
  • const { player, isPresenting } = useXR() - added player Group and isPresenting variables
  • useHitTest - hook to perform hit tests in AR mode

v1.1.0

30 Aug 15:28
Compare
Choose a tag to compare
  • Added useController hook
  • Reworked how controllers are loaded, now controllers are available only when inputSource is present
  • Handled 'disconnect' event for the controller
  • Added experimental Hands component
  • Added 'examples/' folder

v1.0.6

21 May 16:09
Compare
Choose a tag to compare
  • Removed XRCanvas
  • Added VRCanvas and ARCanvas for VR and AR modes respectively

v1.0.5

17 May 16:45
Compare
Choose a tag to compare
  • New component XRCanvas
  • XR renamed to XRContextProvider to encourage the use of XRCanvas

Before:

<Canvas onCreate={({ gl }) => /* ... create vr button */} vr>
  <XR> {/* content */} </XR>
</Canvas>

After:

<XRCanvas>{/* content */}</XRCanvas>

Codesandbox examples were updated to the latest version