I need to prevent Unity to find Vuforia Markers when in play mode WITHOUT a webcam. I have some markers that loads different scenes when tracked; it works well on mobile builds and also in editor>play (with an USB camera plugged in), but without the camera, Vuforia found the markers, even if they are not in sight, and jump to another scene, then found another marker and...continues jumping from one scene to another.
Here is the code:
void Start() { mTrackableBehaviour = GetComponent<TrackableBehaviour>(); if (mTrackableBehaviour) { mTrackableBehaviour.RegisterTrackableEventHandler(this); } }
public void OnTrackableStateChanged(TrackableBehaviour.Status previousStatus, TrackableBehaviour.Status newStatus) { if (newStatus == TrackableBehaviour.Status.TRACKED) LoadSpecificScene(SceneToLoad); }
Any suggestion? Thanks
Hello,
Hello,
So, if you run your Unity project in Play Mode with *no* camera feed, Vuforia Engine APIs return state changes in the trackables?
Yes, if i run the project
Yes, if i run the project with unplugged USB camera, Vuforia finds the targets on the first frame, even they are not visible from the camera!
This is the console output: