AR Treasure Hunt by SamanthaCBajis - 6

MobileGames & ProjectsSDKVR & AR

My first AR application using Unity ARKit Plugin for iOS. It will be a simple game where the user must hunt for the diamonds scattered in the scene to claim the treasure and win the experience.

Unknown VersionUnknown LicenseUpdated 2 years agoCreated on February 27th, 2018
Go to source

AR Treasure Hunt

An example video of this application built and running on device can be found on my YouTube Channel.

This respository contains an AR application created with Unitys ARKit Plugin for iOS. Titled AR Treasure Hunt. It is a game application where the user will interact with UI display panels and GameObjects scattered in the scene. The user will need to locate all diamond GameObjects in the room in order to open the treasure chest and claim the treasure, winning the game. The user then has the abiliy to restart this experience.

screen shot 2018-03-09 at 10 42 38 am

Getting Started


The software you will need to download in order to build and run the game on a mobile device:

• The cross-platform engine Unity Version 5.6.2p1.

  • Only iOS builds! Will need an iOS device, along with the latest version of Xcode.
  • NOTE! You will need to have an Apple ID in order to download Xcode and build for iOS.
  • NOTE! Make sure to have the latest software version; 11 and up.


To build and run a copy of this application to your mobile device:

• On the AR Treasure Hunt repository, go to the green “Clone or download” button and click “Download Zip”.

• Once the zip file has loaded onto your desktop, double click the zip file to open. Navigate to the folder Assets > AR Treasure Hunt.unity and double click the scene to open it in Unity 3D.

-NOTE! The scene may not be located at the top of the folder. If not, you will have to scroll through the folder to find it. It will be titled exactly AR Treasure Hunt.unity with the Unity logo-

After opening the scene in Unity build to iOS platform.

  • For iOS builds:
    • Go to File > Build Settings and switch the platform to iOS (this can take a while) then click the Player Settings button below that and with this open you can change the name of the application and bundle identifier, if you would like to change them, before pressing Build and Run to then be prompted to name the build and save it. (I usually save the build to my desktop so I can delete it later)
      • The build will open in Xcode. Make sure to check your Apple ID is correct, the bundle identifier and the name of the application is what you would like it to be then press the play button in the upper left corner and the application will build and run directly to your iOS device.


When building the application to your phone a few important things to note:

• In Player Settings, you are able to not only change the name of the application and bundle identifier to whatever you would like you can also add a photo to be the icon for the application on your phone. It will be one of the first things you can do in Player Settings. Right under renaming the application!
• Unitys ARKit Plugin used in the game tracks your head movement. Meaning, wherever the phone is facing, the application will open and start your game from that position. If you would like to be facing a certain direction to play the game right after building to your phone I would suggest facing your device in that direction so you can start the experience in the most comfortable position for you.

How to play

The instructions to play the application AR Treasure Hunt:

• Read the instructions and when you’re ready press the “Begin” button on the start panel.


• Collect all diamonds scattered in the scene. The teasure chest will not open until you have collected them all, so don’t give up. Remeber, you’re a pirate and you want that treasure. So keep looking!

• Once completed, the chest will open and you will have won. Press “Play Again?” on the restart panel and you can restart the experience.



• Samantha Cayla Bajis - Initial work - SamBajis


To make AR Treasure Hunt possible:

• Unity ARKit - Application set up and code for anchoring the teasure chest and diamond game objects in scene.

• Blender - Created the Treasure Chest and Diamonds using Blenders software.

ZapSplat - For all audio sources used in application.

Show all projects by SamanthaCBajis