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.

Question How to check if the OpenXR is deinitialized

Discussion in 'AR' started by AcKeskin, Mar 5, 2023.

  1. AcKeskin

    AcKeskin

    Joined:
    Oct 8, 2020
    Posts:
    21
    Hello, in my project I need to deinitialize and re-initialize OpenXR. After calling stop and deinitialize (with the code below) I want to check when it is deinitialized. How can I do that ?
    Code (CSharp):
    1.            
    2.             if (!XRGeneralSettings.Instance.Manager.activeLoader.Stop())
    3.             {
    4.                 return false;
    5.             }
    6.             if (!XRGeneralSettings.Instance.Manager.activeLoader.Deinitialize())
    7.             {
    8.                 return false;
    9.             }
    10.  
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    525