The integration of AR capabilities into an app using Unity involves several steps. Initially, a Geospatial sample project is created in Unity, starting as a 3D project and switching the platform to Android. Key steps include downloading and importing the Cesium and ARCore Extensions packages, setting project settings for Android, enabling Google ARCore, and configuring API keys.
For 3D model integration, a model is selected from the Unity Store, positioned correctly on the map using AR Geospatial Creator Anchor, and adjustments are made for visibility. Animation is added through an Animator Controller, and potential build issues may require adjustments in Unity preferences.
When importing Unity as a library into an Android project, the minSdk version must align with Unity settings, and resolved libraries should be deleted to avoid complications. The unityLibrary is included in the project’s settings.gradle file, and modifications to build.gradle files may be necessary to resolve NDK visibility issues. A missing string resource can cause crashes, which can be fixed by adding a string to strings.xml.