Creating an AR project with the AR (Core) template
Unity have kindly created a project template, which does the required work for AR projects of adding the AR Foundation package, and provides a sample scene that already has the core AR GameObjects needed for an AR project.
In this recipe, you’ll learn how to create a new project from the provided template, open the sample scene and add a 3D object, and then set up the Build Settings config for deployment on an Android device.
Figure 17.8: The AR project we’ll create, with just a Cube overlaid on the device camera view
How to do it...
To create an AR project with the AR (Core) template, do the following:
- In Unity Hub, click the New Project button.
- Select your version of Unity, then scroll down to find the AR (Core) template. If you’ve not used this before you may need to first download this template.
- Provide a project name and destination and click the Create project...