Teasure hunting in a nutshell

Tutorial: Inclusive treasure hunting with and without vision! ***Summary***

What do I need ?

              • a PC
              • a compatible smartphone (list available in the table at this link https://developers.google.com/ar/discover/supported-devices) and usb cable to send a file to the smartphone (otherwise bluetooth works but is longer)
              • a set of softwares to install, as explained step by step in the tutorial: Unity, Android Build Support, ARCore package for Unity, JDK, SDK Android (Android studio)
              • a audio file, MP3 for example, which will be the sound of your treasure (it can be a sound of sonar, a beep or a music).
              • Warning ! At your first use, you need the internet to create and connect to a Unity account to enable features

What does it do when it's over?

You will be able to scan flat surfaces (for example the floor), and touch the screen of your smartphone to put a virtual object: the treasure. This treasure makes noise, in 3D, which allows to find it.

Steps

Warning ! At your first use, you need the internet to connect to a Unity account (and create one if you do not have one by clicking on "create one") as requested (illustration). The next uses do not require a connection, except if you want to download a Unity element (for example, a 3D element to decorate your virtual scene download in the Assets Store).


  • Create a project


  • Download, install and import ARCore package
  • Open the scene "HelloAR"
  • Create a prefab with an audio source configured to be a 3D audio feedback, and "Loop" if you want it plas continuously

This object is potentially a treasure chest downloaded on the Asset Store.


  • Replace "Andy" in Example Controller by prefab with sound
  • Install the JDK
  • Install Android Studio or Android SDK tools (Command line tools only) for Android N (API 24) and over
  • Enter the location of Android in Unity
  • Config the build settings and the player settings to generate the application
  • "Build" the apk
  • Install ARCore on the smartphone
  • Download the apk on the smartphone, and open it to install the app
  • Use the app