Skip to Content
Augmented Reality for Developers
book

Augmented Reality for Developers

by Jonathan Linowes, Krystian Babilinski
October 2017
Intermediate to advanced
548 pages
13h 23m
English
Packt Publishing
Content preview from Augmented Reality for Developers

Adding an AR prompt

Much like we did earlier in the mobile AR version of the project, we are going to provide an AR prompt for the user to center the hologram and permit us to register our 3D instruction graphics on the car's flat tire.

Let's make this prompt the center of our view. Move the main canvas over a bit, and add a circle graphic:

  1. Modify the Main Canvas Position to -0.25, 0, 0. Later, you can further adjust this and even add a little rotation along the y axis.
  2. In the project's Assets/ARGraphics/Prefabs/Sprites folder, drag the Circle2D prefab so it's an immediate child of Hologram (sibling of Main Canvas).
  3. Rename it Circle Prompt.
  4. Set its Scale to 0.06, 0.06, 0.06.

Your scene now looks like this:

While we're here, add a Box Collider ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Augmented Reality Game Development

Augmented Reality Game Development

Micheal Lanham
Augmented Reality

Augmented Reality

Joseph Rampolla, Greg Kipper

Publisher Resources

ISBN: 9781787286436Supplemental Content