Search Unity

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

Question Loading XR Plugin Providers in custom order

Discussion in 'VR' started by Obja, Nov 28, 2023.

  1. Obja


    Oct 25, 2020
    Hello, I am trying to use the Varjo XR-3 with its video-seethrough capabilities together with vive trackers. In order to properly use the video-seethrough function I need the Varjo XR-Plugin. To use the Vive-trackers I need the OpenXR-Plugin. According to Varjo it works to use both plugins at the same time ( but they say, that the Varjo XR-Plugin should be initiliazed first, linking to the unity documentation. Now I don't really understand the Unity documentation and can't get it to work.

    Therefore I am asking: How can I initialize the varjo XR-Plugin first, and the OpenXR Plugin second, at the beginning of runtime, so that I can use the Varjo XR-3 with video-seethrough in the editor? How would such a script look like?
    I don't understand when, where and how to call the initalization, because apperently it needs to be done before the start method is called.