World space content canvas

The first step will be to change the Main Canvas content from screen space to world space. And in the process, let's set up an object hierarchy, which will be convenient for placing them in space.

We will define an Origin at the top of the Hierarchy, with a child Hologram that contains all our instructional content that should stay together. Then when the user places the content, they'll move the Hologram relative to the Origin:

  1. In Hierarchy, Create Empty object, and name it Origin.
  2. Reset its Transform (gear-icon | Reset).
  3. With Origin selected, Create Empty child object, and name it Hologram.
  4. Reset its Transform too.
  5. Set the initial Hologram Position to 0, 0, 2 so it's right in front of the user, 2 meters away. ...

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.