Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question HandsDemoScene hand menu disappears on build

Discussion in 'XR Interaction Toolkit and Input' started by leenlab2, Jun 26, 2023.

  1. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    The scene works fine in the editor player, with a scrollview menu appearing when my palm faces me. However, on build the menu disappears entirely. I am using XRI 2.4.0, XR Hands 1.2.1. What I found so far is that the menu appears if I child it to the Left Hand Interaction Visual's L_wrist object. When I attach it to a copy of the Left Hand Tracked Anchor (Tracked Pose Driver), it appears at (0, 0, 0) and does not move along with the hand.

    Not sure what might be causing this. Any ideas?
     
  2. ericprovencher

    ericprovencher

    Unity Technologies

    Joined:
    Dec 17, 2020
    Posts:
    157
    Hmm in builds are you using OpenXR and did you enable all of the hand tracking subsystem options in the openxr menu for android? You probably also want to make sure hands are properly setup in your Quest OS.

    Other than that, you can try updating your OpenXR package to the latest as well, and ensure you're using the latest 2021.3 or 2022.3 LTS version.

    Finally, if nothing works, I recommend building your APK in developer mode and then keeping link connected to see what if any error logs appear in the editor when you run the app.
     
  3. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    I've already done that, and unfortunately nothing helpful appears in the console. Here is more information about what versions I am using:
    • Unity: 2021.3.20f1
    • OpenXR: 1.8.1
    • XR Hands: 1.2.1
    • XR Interaction Toolkit: 2.4.0
    • Device: Meta Quest Pro (with Hand-tracking, etc turned on)
    With the following settings in OpenXR
    upload_2023-6-26_17-26-53.png
    For Desktop:
    upload_2023-6-26_17-27-6.png
     
  4. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    Got something new:

    I tried making a simple wrist menu setup. I made a new gameobject with a TrackedPoseDriver (Input System)
    upload_2023-6-28_12-32-29.png

    and attached a basic Canvas UI with only one button as a child. This works in the editor, but not on build. The menu button appears in build at the floor on the origin point.

    I suspect the hand position is not being tracked properly. Whether I click "ignore tracking state" or not has no effect.
     
  5. ericprovencher

    ericprovencher

    Unity Technologies

    Joined:
    Dec 17, 2020
    Posts:
    157
    Ok so judging from your setup I think this is the issue.

    upload_2023-6-28_13-0-12.png

    For one, Meta Quest Support and MetaXR Feature are conflicting feature groups.

    MetaXR Feature comes from the Meta Integration Asset and it isn't supported by us, and from some testing on my end, it contains issues in reporting joint rotations with OpenXR Hand tracking. If you remove that feature group your issues should be resolved.

    If you have issues with parts of the meta integration asset, I'd suggest going to the meta developer forums to discuss them.
     
  6. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    I tried disabling the MetaXRFeature but that did not work. Same situation as before
     
  7. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    Some extra details that may be useful:
    - I followed the setup indicated by adroanheinen in this thread: https://forum.unity.com/threads/pos...ough-api-work-with-the-openxr-plugin.1412400/ Note that even in a new scene without passthrough/OVRManager components, the issue still occurs
    - I am also facing the issue pointed out by others in that thread where if I switch from hands to using controllers, the controllers are no longer tracking and remain frozen.
    - Disabling MetaXR feature and using only Meta Quest Support did not solve the issue, neither did the other way around
     
  8. ericprovencher

    ericprovencher

    Unity Technologies

    Joined:
    Dec 17, 2020
    Posts:
    157
    Ok Im gonna debug this a bit more and get back you all.
     
  9. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    Got something new: If I use upload_2023-6-28_17-14-3.png

    With Aim Position rather than just Position then the menu does appear on my hand.
     
  10. ericprovencher

    ericprovencher

    Unity Technologies

    Joined:
    Dec 17, 2020
    Posts:
    157
    Yeah I did a local test and ran into issues where the rotation is not properly tracking which is why the menu isn't appearing. Worth noting the menu isn't calibrated for the aim pose so I'd hesitate to recommend that as a fix.
     
  11. ericprovencher

    ericprovencher

    Unity Technologies

    Joined:
    Dec 17, 2020
    Posts:
    157
    Hey so it turns out the issue is that OpenXR 1.8.1 has a bug in it. The last working version we’ve tested is 1.7.0. Please give that a shot and let us know if it resolves your issues.