Back

Week12‑S1: Creating Basic AR With Unity

The development of Augmented Reality (AR) no longer requires speciality toolkits as I will be using Unity’s AR Foundation which gives us a first‑party, cross‑platform workflow. In this session I will create a tiny working AR that spawns a cube in the real world.

1. Installed Prerequisites

  1. Unity Hub
  2. Unity Editor
  3. Xcode (It is required for me as I am using Macbook and will deploy demo to my iPhone)

2. Creating a New Project

  1. Opened Unity HubNew Project > 3D template.

  2. Name: Week12_Demo_AR

3. Install AR Foundation Packages

  1. With the project open, navigate to Window › Package Manager.

  2. I added following packages:

    • AR Foundation (core abstraction layer)

    • ARKit XR Plugin (iOS provider)

4. Configuring the Scene

AR Session controls the life‑cycle of an AR experience.

AR Session Origin provides the camera and coordinate system.

Placing the cube somewhere. Like, I placed it at X:-2.46, Y:1.24, Z:-2.04 (Random Attempt)

5. Saving And Deploying

Now I have saved the scene. In next blog/session, I will try to run it in real phone and test. (Fact: Deploying in iPhone seems to be harder as it needs some developer account workaround and xcode build, while doing it in android could have been much easier and better as beginner)

Arafat Ahmad Mahin Khan
Arafat Ahmad Mahin Khan
http://mdx.ahmeds.org

Leave a Reply

Your email address will not be published. Required fields are marked *