Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Packages/webxr/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Hands tracking update.
- Flickering on touch input in immersive WebXR sessions by queueing synthesized touch events and dispatching them during the XR animation frame.

### Added
- WebXR Anchors: Session anchor support for immersive AR sessions, including creating anchors from viewer hit-test results or Unity poses and receiving per-frame anchor pose updates.
- WebXR Anchors: To use anchors, enable the `anchors` optional feature in WebXR AR settings and see samples for usage.

## [0.22.1] - 2024-11-09
### Added
- Support for WebAssembly Table, to support newer Unity versions features.
Expand Down
29 changes: 29 additions & 0 deletions Packages/webxr/Runtime/Plugins/WebGL/webxr.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,35 @@ var LibraryWebXR = {
Module.HandsArrayOffset = byteOffset / 4;
},

InitAnchorsArray: function(byteOffset) {
Module.AnchorsArrayOffset = byteOffset / 4;
},

SetWebXRAnchorEvents: function(onAnchorCreatedPtr, onAnchorDeletedPtr) {
Module.WebXR.onAnchorCreatedPtr = onAnchorCreatedPtr;
Module.WebXR.onAnchorDeletedPtr = onAnchorDeletedPtr;
},

CreateAnchorFromViewerHitTest: function() {
Module.WebXR.createAnchorFromViewerHitTest();
},

CreateAnchorFromWaitingForViewerHitTest: function() {
Module.WebXR.createAnchorFromWaitingForViewerHitTest();
},

CreateAnchorFromPose: function(px, py, pz, qx, qy, qz, qw) {
Module.WebXR.createAnchorFromPose(px, py, pz, qx, qy, qz, qw);
},

DeleteAnchor: function(anchorId) {
Module.WebXR.deleteAnchor(anchorId);
},

DeleteAllAnchors: function() {
Module.WebXR.deleteAllAnchors();
},

InitViewerHitTestPoseArray: function(byteOffset) {
Module.ViewerHitTestPoseArrayOffset = byteOffset / 4;
},
Expand Down
Loading