October 2017
Intermediate to advanced
548 pages
13h 23m
English
The final step is to enable the augmented instruction graphic in the scene. These are the same steps we did for mobile VR, but assuming this is a new project, we have to make the changes here. For a more detailed explanation, please read through the integrating augmented content section in this chapter.
Tell InstructionStep to read the AR prefab data from the CSV file.
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;
}
Create an ARGraphic.cs script to handle the UIElement events. In your Scripts/UIElements/ folder, create a C# script named ...
Read now
Unlock full access