AR Game ~ Initial AR to practice ~

takeda1411123

Akira Game

Posted on June 4, 2024

AR Game ~ Initial AR to practice ~

Table of contents

  • Background
  • Creation an AR object on Unity for the first time
  • Execution AR
  • Next Step

Background

I will develop AR Game with Unity, AR foundation and so on. To learn AR development, I am researching about AR and the software related it. This blog shows the research and the process of developing AR game. If you have a question, I am happy to answer it.

Creation an AR object on Unity for the first time

In this post, I will implement the AR experiment that player put an AR red cube on Unity and show the process.

Precondition

  • Unity is installed
  • AR foundation package is installed

How to implement an AR object

  1. Create Scene
    Image description

  2. Delete "Main Camera"

  3. Add "AR Session" ( XR -> AR Session )
    Image description

  4. Add "XR Origin (AR)" (XR -> XR Origin (AR))
    Image description
    It has "Main Camera", which synchronize the position and direction of user's device in real world.

  5. Put cube under the XR Origin objects
    Image description

Execution AR

This part will show how to execute the game on iOS and Android.

Execution the game on iOS

  1. Click Build Setting
  2. Select iOS on Platform
  3. Click Switch Platform
    Image description

  4. Add the package Apple ARKit XR Plugin from package manager
    Image description

  5. Check Apple ARKit from XR Plug-in Management of Project Settings
    Image description

  6. Build

Execution the game on Android

  1. Click Build Setting
  2. Select Android on Platform
  3. Click Switch Platform
    Image description

  4. Add the package Google ARCore XR Plugin from package manager
    Image description

  5. Check Google ARCore from XR Plug-in Management of Project Settings
    Image description

  6. Build

Finished Product

Next Step

As next step, I will develop the applied AR game using these above products.

💖 💪 🙅 🚩
takeda1411123
Akira Game

Posted on June 4, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related