public void OnRecognitionResponse(CloudRecognitionServiceResponse response) { if (response.Recognized) { // If the cloud recognized a target, we stop continuous recognition and track that target locally ToggleContinuousCloudRecognition(false); } }
public void OnRecognitionResponse(CloudRecognitionServiceResponse response) { RecognizeButton.enabled = true; ButtonText.text = "Recognize"; if (response.Recognized) { InfoText.text = response.Info["name"]; } else { InfoText.text = "No target recognized"; } }
public void OnRecognitionResponse(CloudRecognitionServiceResponse response) { if (response.Recognized) { /* If the cloud recognized a target, we stop continuous recognition and track that target locally. */ ToggleContinuousCloudRecognition(false); InfoText.text = response.Info["name"]; } else { InfoText.text = "No target recognized"; } }