For some reason, when I make calls to the leap motion DLL, it will break the VR mode in Unity. This only happens in the editor the second time I run the project. So, I can run the project fine the first time (and build the project, if I build before i run the scene), but the second time, VR will be disabled, and can't be turned on again until I close and re-open Unity.
I'm using Unity 5.4 beta, and Leap v2.3. I can't use newer versions of Leap because the app heavily relies on support for tools and Pointables (which were deprecated in v3 I believe). I'm using the VR build into Unity, so the old OVR package has been removed already.
So I've found a few calls that are breaking it
new Leap.Controller();
and
new Leap.Pointable();
Any ideas what might be causing this, or some way I could work around it? I've tried reimporting the entire project after running the scene to see if it'll reset and let me use VR, but it persists through that. only reloading unity will fix it.
I'm guessing the DLL is being loaded by the editor, and calling Leap will prevent VR from starting up somehow?