Search Unity

IL2CPP and VR (XR)

Discussion in 'AR/VR (XR) Discussion' started by petak_core, Feb 5, 2018.

  1. petak_core

    petak_core

    Joined:
    Nov 19, 2012
    Posts:
    57
    Hi to everyone,

    I have an issue when I tried to build app with IL2CPP my app doesn't switch in to VR (XR) mode - display didn't divided into to lens etc.

    When I just switch from IL2CPP into Mono, VR (XR) settings sets fine, and my app lunch with correct VR (XR) settings - I can see dived screen into two lens etc.

    Do you have any tips or advice how to start my app with IL2CPP backend scripting and lunch VR (XR) settings?
    I'm using Unity 2017.3.0f3
    Target platform: Android

    Thank you.
     
    Last edited: Feb 5, 2018
    zionglobal likes this.
  2. petak_core

    petak_core

    Joined:
    Nov 19, 2012
    Posts:
    57
    I think I just figure out, I have to used:
    Code (csharp):
    1.  
    2. UnityEngine.XR.XRSettings.enabled = true;
    3.  
     
    Anjin_nz likes this.
  3. Vaibhav-1937

    Vaibhav-1937

    Joined:
    Aug 29, 2019
    Posts:
    2
    doe
    did it work