by Arifa Nafees

Tutorial 1:How to create Augmented Reality App using Unity and ARFoundation for Android

Hello everyone, In this tutorial, I’ll walk through how to build an Augmented reality app using Unity and ARFoundation. First of all, I will cover some core concepts, then jump into the project setup and then to code.

CORE CONCEPTS

Unity:- It is a powerful, full-featured, commercial, cross-platform game engine developed by Unity Technologies.

ARFoundation:- Unity AR framework which allow you to create one AR application and deploy on android as well as ios.

SETUP FOR AR FOUNDATION

Step 1: Open new 3D project in Unity.Set the name and path for the project and click on CREATE Button. setup

Step 2: Click on File -> Build settings and Switch to Android Platform and then close the BUild settings window. setup setup

Step 3: Click on Edit -> Project Settings -> Player setup

Step 4: Change the Company name setup

Step 5: Click on Other Settings a. Remove Vulkan from Graphics APIs setup b. Uncheck Multithereaded Rendering setup c. Change package name d. Set minimum API level to Android 7.1 ‘Nougat’(API Level 25) setup

Close the window of Project SEttings. Now, we have to install ARFoundation, AR Subsystem and ARCore XR plugin for Android.

Step 6: Click on Window -> Package Manager setup a. Install ARFoundation setup b. Install ARCore XR Plugin setup

Step 7: Click on Edit -> Player Setting -> XR Plugin Management -> Checked on ARCore setup

Congratulation! You have setup the ARFoundation in Unity for creating AR apps. Now, in my my blog of “How to create Augmented Reality App using Unity and ARFoundation for Android” I’ll tell you how to do plane detction in ARFoundation App.

Thanks, Arifa Nafees

This page and its contents are copyright © 2020, Arifa Nafees.