Preparing the scene

Our AR graphics will be parented by a Root game object and then positioned when the AR Prompt detects a screen touch. We can add Root now. We'll start with a temporary Cube as our content, then add the real graphics next:

  1. Temporarily disable the Main Canvas' Content Scroll View panel in Hierarchy.
  2. In Hierarchy, Create Empty named Root, reset its Transform, and set its Position Z = 2.
  3. Create 3D | Cube, and set its Transform Scale to 0.1, 0.1, 0.1.

At this point we can import the ChangeATire-ARGraphics package we have provided with the files for this chapter of the book.

  1. Choose Assets | Import Package | Custom Package... to import the package.

Next, we can continue to build our project.

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.