Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug OpenXR with InputSystem "isTracked" does not seem to work in build

Discussion in 'VR' started by Qleenie, Nov 20, 2023.

  1. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    831
    Hi,

    as title says. Either I don't use it correctly (hard to say, as I was not able to find any documentation), or it's broken.

    I tried the following:

    - Mapped as button in Input to make it a boolean (is this correct?)
    - Register as Event with action of InputActionReference:
    Code (CSharp):
    1. inputActionReferenceGrip.action.started += StartTracking;
    ;
    - Directly queried from action:
    Code (CSharp):
    1. inputActionReferenceGrip.action.IsPressed()
    - Tried it on both HMD and controllers

    In Editor all of above it seems to work as intended, in build none of the methods.
    I also tried "UserPresence" and got exactly same behavior, works fine in Editor, but not in build.

    What am I missing?
     
  2. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    307
    Could you please submit a bug report using your project so that we can verify this? User presence is bugged in some cases, but isTracked for controllers should be working in most cases in builds. We are currently working on a fix for user presence, but we are unaware of sweeping issues regarding isTracked in builds so without a reproducible project, we won't know what to look for.
     
  3. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    831
    Project is 400GB. So it’s working for you in builds? If you can confirm, I would try to build a repo project, if I can find time. Not looking forward to it though, as I already invested too much time into bug reports which don’t get fixed or not backported.