Here are some recommendations for building your Unity Scene.
Note: This document is dynamic, we add topics constantly whenever changes to Unity and attached deployment platforms occur. You faced problems yourself? Write us at reque st@v ision lib. com
For developing and testing, you will probably use a VisionLib trial or developer license. As soon as you are ready to ship your application, you will then need to adjust your used license option.
For example, you can use a deployment license to deploy in App Stores and need to bind your (3D model) tracking targets to it via their hashes.
Find more information on licensing options here: Licensing.
In order to deploy to iOS you will need the following prerequisites.
We assume that you have already exported a unity scene to an iOS device before.
Since version 17.10.1 VisionLib will assume that you have Xcode 9 installed. You can still deploy to Xcode 8 and lower versions of iOS but you will have to remove the ARKit framework dependency from the project.
In order to deploy the application from Unity, you will have to do the following modifications on your player settings in the project:
Camera Usage Description
(NSCameraUsageDescription) and a valid bundle identifier.The plugin automatically performs the following modifications to the Xcode project generated by Unity:
Please install the Android SDK to be able to deploy applications to your android device. You will need at least Android in version 4.4 for the deployment to work. We recommend using a device supporting OpenGL ES 3.
For the deployment in Unity, set the following player settings (under Other Settings
):
Android 4.4. "Kit Kat" (API level 19)
If deploying to 64bit devices, the processing speed can be increased significantly by additionally setting the following:
Mono
to IL2CPP
ARM64
, uncheck ARMv7
and x86
Note: Unity might ask you to update the Android NDK when trying to build after those changes (each Unity version requires a specific version of the Android NDK). Simply press the Download
button on Unity's prompt, download and unzip the NDK and reference the path the next time Unity asks for the NDK's location.
Note: On macOS (Catalina and higher), using the updated NDK might be blocked because of an untrustworthy developer certificate. In this case you have to allow the NDK binaries to be executed in the "Security & Privacy" settings of your macOS.
If you are using extendible tracking with ARCore, make sure that ARCore is installed on the target device. For more information on extendible tracking, see External SLAM (ARKit/ARCore) Support.