Adding the AR Foundation package and GameObjects to a 3D scene
If you already have a 3D project, then there are some basic steps you need to perform so that your Unity Editor application is set up for AR development. AR projects created with Unity have, at their core, the AR Foundation package and XR Plugin Manager. In the previous recipe, things were set up for us already as part of the Unity AR (Core) template project. In this recipe, we’ll create a new Unity 3D project and then manually add the AR Foundation package to the project. In this recipe, we’ll create the same scene setup, but will be building a scene from scratch to get to know the AR Foundation GameObjects and how to add them to any scene.
This recipe can be used as a guide on how to add AR capabilities to any existing 3D project you might already have. As part of this recipe, we’ll also be adding the appropriate plugin for the Android target device on which the AR project is going to be developed...