Hello,
I am developing for the ODG R-7 glasses primarily, but also want to support tablets. Since the only real change between the two would be changing 1 setting in the Vuforia Configuration (Chagning Digital Eyewear type from Optical See-Through to Video See-Through), it makes sense to me that I should be able to output just 1 APK file that can be installed on both the ODG glasses AND an Android tablet, and it should work on both (see-through stereoscopic for the glasses, and rendering the camera feed on the tablet).
Is there an easy way to do this in script so I don't have to switch the one setting and then rebuild an entirely new APK for each?
Thanks
Yes, you can setup an APK to check whether it is a mobile or optical eyewear device and programmatically configure the settings. I would suggest setting the Inspector values for mobile and then change to eyewear settings if a dedicated eyewear device is detected.
https://library.vuforia.com/reference/api/unity/classVuforia_1_1DigitalEyewearARController.html
https://library.vuforia.com/reference/api/unity/classVuforia_1_1EyewearDevice.html
Here's some code you can use: