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

Defining InstructionElement

To help organize our code in a clean object-oriented structure, we will define UI elements which will all inherit from an InstructionElement class. This will be the base class. Therefore, we should label the class as abstract. This means that new instances of InstructionElement cannot be created directly, only one of its subclasses.

We shall also require that each subclass of InstructionElement must provide its own implementation of an InstructionUpdate function, which gets the instruction-step data it can use to update its specific UI element. So, in our abstract class, we also declare an abstract function for InstructionUpdate:

  1. In Unity, in the Assets/HowToChangeATire/Scripts/ folder create a subfolder named ...
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