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

Creating AR UI elements

In the previous chapter, we also implemented an InstructionElement abstract class that we subclass for each of the content types: title, body, image, and video. We will now make a similar one for the AR graphic content.

Technically, the graphic is not a UI one because it's going to be displayed in 3D world space, not 2D screen space like the other instruction content. But it fits nicely with our architecture design because we can load it from CSV like other content, and can broadcast its updates like other UI content when the user changes steps.

In your Scripts/UIElements/ folder, create a C# script named ARGraphic and write it as follows:

File: ARGraphic.cs using UnityEngine; public class ARGraphic : InstructionElement ...
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