Search Unity

Question How to restart the whole application?

Discussion in 'AR' started by AliCanKeskin, Aug 19, 2022.

  1. AliCanKeskin

    AliCanKeskin

    Joined:
    Jun 7, 2022
    Posts:
    25
    Hello, I am developing an application with OpenXR to HoloLens2. At some point I want to restart the whole application. Not the level/scene though, I need to restart the whole application so that OpenXR can reinitialize the whole instance and session. Any way to do that ? Maybe with a C++ code that I can put it into my native library that I can call from Unity?
     
  2. AliCanKeskin

    AliCanKeskin

    Joined:
    Jun 7, 2022
    Posts:
    25
    Nobody? Maybe anyone knows how to do it with C++ code? How to restart the app from a native C++ code?
     
  3. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    andyb-unity likes this.