Home Forums Unity SDK Setup Unity project for OPEN_VR and PICO

Tagged: , , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20482
    Jeroen De mooij
    Participant

    Hi,

    We are trying to configure a unity project (2020.3.3f1) so we can build to either OpenVR for the Vive Eye, or the Pico Neo 2.

    When building to Android it failed on OPEN_VR being enabled, which is set in the JSON TobiiXRCore.asmdef file which seems to check if the OpenVR package is installed. Removing the reference “Unity.XR.OpenVR” and the entry “versiondefines” makes it building to Android again. Also it seems to work for the windows build.
    But it feels like a hack and is not a stable solution.

    Anyone got tips how to set up a Unity project for both OpenVR & Pico?

    Thanks, Jeroen

    #20489
    Grant [Tobii]
    Keymaster

    Hi @jeroen, sorry to hear about your issues however you will be pleased to hear that we have now fixed this issue for the next SDK release in response to you raising the problem, so thanks for the feedback!

    In the meantime, what you can do is to update the line
    #if OPENVR_ENABLED
    to
    #if OPENVR_ENABLED && !UNITY_ANDROID

    in the scripts ControllerManager.cs and OpenVRControllerAdapter.cs
    Furthermore, we do recommend using OpenXR when developing for Vive Pro Eye and newer Unity versions.

    Do let us know if you have any trouble implementing the proposed workaround unit we roll out the next release. Best Wishes.

    #20498
    Felix Klotzsche
    Participant

    Hi @Grant, thanks for the quick response. I’m working with @Jeroen on this project – trying to make it compatible with the Vive Pro Eye side.

    Furthermore, we do recommend using OpenXR when developing for Vive Pro Eye and newer Unity versions.

    In your experience, is OpenXR functional and stable enough (esp. in terms of interaction) to cater the Vive Pro already? Most resources I found online (including Valve’s README to their Unity OpenXR plugin), said that for now SteamVR/OpenVR is still required. I’d be happy & thankful if you could point me to resources that explain how to handle everything with OpenXR. Thanks!

    #20499
    Jeroen De mooij
    Participant

    Hi @Grant
    Thanks for the quick reply, we will incorporate this quick-fix for now.
    Any hints on the next release dates?

    Cheers,
    Jeroen

    #20502
    Grant [Tobii]
    Keymaster

    No release date yet Jeroen, but hopefully very soon, keep checking back on our website for relevant updates.

    #29681
    Herbertclark
    Participant

    Setting up a Unity project for Open VR and Pico is a great step! For developers looking to enhance their projects, using sendgrid localization can streamline communication with users and ensure that your messages reach a global audience effectively.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.