Adding the AR Controller

Every scene requires an AR controller object with toolkit components used to drive the app. The AR controller manages initialization, setup, and features, such as the video stream projection from the phone.:

  1. In your Unity project, in the Hierarchy panel, select Create | Create Empty (or, in the Main Menu, GameObject | Create Empty).
  2. Then, over in the Inspector panel, rename it to ARController.
  3. Click Add Component, find Scripts in the list, and add the AR Controller component to this object.

This object will be the base of all the interactions with ARToolkit. A fully expanded view of this component is shown here:

Almost all of these options can be ignored for now and left at their default value.

Make note of the ...

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.