Search code examples
androidunity-game-enginevuforiaarcore

Is there a way to have Vuforia and ARCore in the same app?


We are currently developing an app for a student project, that we want to enable to use ARCore and ARKit on Android and iOS respectively and Vuforia as a fallback. After my project partner has already implemented ARKit and Vuforia in two separate scenes, I'm now trying to add ARKit.

But when trying to add both to the Android build under Player Settings -> XR Settings, I get the following message:

Both ARCore and Vuforia XR Device support cannot be selected at the same time. Please select only one XR Device that will manage the Android device.

We would like to be able to allow users to always be able to fall back to Vuforia, but use ARCore on compatible devices. Is there a way to have both in the project at the same time?


Solution

  • AFAIK you would be able to do this if you're building Unity scenes into an android app built in Android studio or some other way. You would have a check for ARCore support on the device, and if that passes you would load a Unity scene that has ARCore support. If that does not pass you load another Unity scene that uses Vuforia. If you're working only in Unity like I am, I do not think it is possible. I could be wrong, though.