Adding the AR Root origin

The rest of the AR objects we add will be parented under an object named ARRoot. This object will serve as the origin of our AR scene:

  1. Create another empty GameObject in the Hierarchy and name it ARRoot. Be sure that its Transform Position is (0, 0, 0).
  2. The ARRoot object, and any of its child objects, should reside on the AR Background 2 layer. In Inspector, set its Layer to AR Background 2 (this is the object's layer set at top of the Inspector).
  3. Then, use Add Component to add the script AR Origin.
Quickly locate the scripts and components you want in the Add Component dialog by typing the first couple of letters of the name in the search field, such as AR for ARToolkit components.

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.