Setting up the project

Let's jump right in:

  1. Create a new 3D project in Unity, named BusinessCardART.
  2. Import the ARToolkit asset package (for example, ARUnity5-5.3.2.unitypackage) using Assets | Import Package | Custom Package....

Create the AR Controller object.

  1. Add an empty object using GameObject | Create Empty named AR Controller.
  2. Click Add Component and add ARController to it.
  3. Make sure the component script's Video Options' Layer attribute is set to AR Background (we're referring to the Video Options Layer not the object Layer at top of the Inspector). If necessary create the required layers first, see Chapter 2, Setting Up Your System, for instructions.

Create the AR Root object.

  1. Add an empty object using GameObject | Create Empty ...

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.