
上QQ阅读APP看书,第一时间看更新
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:
- Create another empty GameObject in the Hierarchy and name it ARRoot. Be sure that its Transform Position is (0, 0, 0).
- 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).
- 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.