IL2CPP and VR (XR)

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.

1 Like

I think I just figure out, I have to used:

UnityEngine.XR.XRSettings.enabled = true;
1 Like

doe

did it work