Planning your Project before Starting to Code | AR Unity Developer

Derek Anderson
2 min readMay 10, 2024

--

Using touch inputs to manipulate objects up close has finally led to why this AR app is being called Magic Box. The goal of this Magic Box project is to get three gems on a box. If the order is correct, the box will open to reveal another gem. However, we don’t know the right order of gems that will open up the box. The answer lies on the bottom of a skull object that will have the proper unlock order for the magic box.

There are three gems in this Magic Box project, which will have a custom script and a selection interactable for each gem. A box manager script will be needed to check the order of the gem placement and reset it if the order is incorrect. If it is correct, then it will call the animator to open up the box.

The skull is going to be the only object that will be examinable. There won’t be a need to inspect the gems because they will be color coded, but the order of the gems is placed at the bottom of the skull. In order to find that order, the skull needs to be examined up close so that it can be rotated to find the order.

One more thing to note is that it isn’t necessary to have multiple placement interactables for this project. In order to only work with one magic box set, which includes the skull and gems, there is an interactable event on the AR Placement Interactable that can be used to disable the placement of more magic box sets once the initial one has been placed.

With our plan set, we’re ready to begin working on getting a functioning magic box!

--

--