October 2017
Intermediate to advanced
548 pages
13h 23m
English
Let's add the UserDefinedTargetBuilder to our project now:
For now, we are telling the target builder to start scanning automatically. This is useful at this point in our development.
But really, we want to control the scanning to occur only while in AR mode. We can add this to the InstructionsController script as follows:
File: InstructionsController.cs public UserDefinedTargetBuildingBehaviour UserDefinedTargetBuilder; ... void TurnOnArMode() { UserDefinedTargetBuilder.StartScanning(); StandardContent.SetActive(false); } void TurnOffArMode() { UserDefinedTargetBuilder.StopScanning(); ...Read now
Unlock full access