diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick3d/xr_anchors/main.qml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/examples/quick3d/xr_anchors/main.qml b/examples/quick3d/xr_anchors/main.qml index 39b53d3e..fc6acb03 100644 --- a/examples/quick3d/xr_anchors/main.qml +++ b/examples/quick3d/xr_anchors/main.qml @@ -76,10 +76,17 @@ XrView { poseSpace: XrController.AimPose XrInputAction { - controller: XrInputAction.RightController + hand: XrInputAction.RightHand actionId: [XrInputAction.Button2Pressed, XrInputAction.MiddleFingerPinch] onTriggered: xrView.preferPassthrough = !xrView.preferPassthrough } + XrInputAction { + hand: XrInputAction.RightHand + actionId: [XrInputAction.Button1Pressed] + onTriggered: { + spatialAnchors.model.requestSceneCapture() + } + } onRotationChanged: { const pickResult = xrView.rayPick(scenePosition, forward) @@ -161,7 +168,7 @@ XrView { anchors.fill: parent anchors.margins: 10 textFormat: Text.StyledText - text: "Total anchors: " + labelNode.numAnchors + "<br>" + "Selected: " + labelNode.anchorInfo + text: "Total anchors: " + labelNode.numAnchors + "<br>" + "Selected: " + labelNode.anchorInfo + "<br>" + "Press A to Capture/Update anchors" } } } @@ -171,6 +178,7 @@ XrView { Repeater3D { id: spatialAnchors model: XrSpatialAnchorListModel { + } delegate: Node { id: anchorNode |