Search Unity

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:
    27
    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:
    1,062