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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.159.10