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

Reading the AR graphic instructions

In Chapter 6, How to Change a Flat Tire, we implemented an InstructionModel class that maintains the data list of instructions for how to change a tire. The data is read from our CSV data file. InstructionModel calls InstructionStep to extract data from each row of the file. We expect the AR prefab name to be the fifth column in your database. We can grab it when the file is loaded.

To InstructionStep.cs, add a new variable:

    public string ARPrefabName;     private const int ARColumn = 5; 

Then add this to the InstructionStep constructor function:

            if (values.IndexOf(item) == ARColumn) { 
                ARPrefabName = item; 
            } 

Next, add its UI element.

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