void OnDisable()
 {
     VuforiaARController.Instance.UnregisterVuforiaStartedCallback(OnVuforiaStarted);
     VuforiaConfiguration.Instance.Vuforia.MaxSimultaneousImageTargets = 4; // Reset back to 4 when exiting
     VuforiaUnity.SetHint(VuforiaUnity.VuforiaHint.HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS,
                          VuforiaConfiguration.Instance.Vuforia.MaxSimultaneousImageTargets);
     // Unregister callbacks from VuMark Manager
     this.vumarkManager.UnregisterVuMarkBehaviourDetectedCallback(OnVuMarkBehaviourDetected);
     this.vumarkManager.UnregisterVuMarkDetectedCallback(OnVuMarkDetected);
     this.vumarkManager.UnregisterVuMarkLostCallback(OnVuMarkLost);
 }
 void Awake()
 {
     VuforiaConfiguration.Instance.Vuforia.MaxSimultaneousImageTargets = 10; // Set to 10 for VuMarks
     VuforiaUnity.SetHint(VuforiaUnity.VuforiaHint.HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 10);
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     VuforiaUnity.SetHint(VuforiaUnity.VuforiaHint.HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 4);
 }