Supporting Mobile and PC SDKs in a Single Unity Project
I made a little tool and editor script to ease the pain of switching between the PC and Mobile SDKs for one of our projects that is targeting both Gear VR and PC. This is a bandaid solution that could easily break with future SDK releases (it's made for 0.4.4 PC and 0.4.2. mobile) but it's already saved us a fair bit of time.
https://github.com/turbobutton/oculus-platform-helper
It also has the camera prefab we use in place of the standard Oculus cameras, which uses the correct Oculus camera based on platform-dependent compilation stuff.
YMMV, and it will likely need adjustments for your own project!
https://github.com/turbobutton/oculus-platform-helper
It also has the camera prefab we use in place of the standard Oculus cameras, which uses the correct Oculus camera based on platform-dependent compilation stuff.
YMMV, and it will likely need adjustments for your own project!
