From the course: Create Voice Controlled AR Apps 1: Build a Car Showcase Application

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Ground planes, part 3

Ground planes, part 3

- On the DeployStageOnce script let's open that up for a second. Now, what this does, is it grabs ahold of the AnchorStage, and it starts the tracker, and then it comes down, and then it throws us an error if there's any problems, and the part that is interesting to me is here. OnInteractiveHitTest. When we tap the screen, it will pass in a result, okay. Then it will check if the result is empty and if the AnchorStage is empty. Now, once we have tapped the screen, it will create a variable called anchor, and that will be the name of the holder that the object will be stored inside. And then the stage is the name of the actual stage, which is the Ground Plane Stage here. So let me give you a bit of a demo for a second. I'm going to drop in some little debug code here, just to write in to the actual console as this runs. And I want it to write the anchor name, there we go, and I also want it to write the AnchorStage. So this will be the anchor, just so that we can see it for now, like…

Contents