Releases: pmndrs/xr
Releases · pmndrs/xr
v3.1.0
v2.0.2
- Add useXRFrame hook by @ThomasRutzer
v2.0.1
v2.0.0
Breaking changes:
- Hover, Select components are removed and replaced by Interactive component
Added:
<Interactive />
component - allows attaching event handlers to the content in the sceneuseInteraction
hook - attach events to an existing object in the sceneconst { player, isPresenting } = useXR()
- added player Group and isPresenting variablesuseHitTest
- hook to perform hit tests in AR mode
v1.1.0
v1.0.6
v1.0.5
- New component
XRCanvas
XR
renamed toXRContextProvider
to encourage the use ofXRCanvas
Before:
<Canvas onCreate={({ gl }) => /* ... create vr button */} vr>
<XR> {/* content */} </XR>
</Canvas>
After:
<XRCanvas>{/* content */}</XRCanvas>
Codesandbox examples were updated to the latest version