Hello, how to make that scan VWS Cloud Recognition did not stop after finding the Target? Ie the point is that if, for example, in the field of view two targets, very rarely target with both recognized, generally recognized target data was immediately treated with a cloud, and after finding the Target, scanning stops, how to make that scan went always, even if target is found, because there might be another target). Thank you in advance.
This behaviour can be
This behaviour can be controlled by enabling or disabling the CloudRecoBehaviour. Take a look at the CloudRecoEventHandler in the sample..
public void OnNewSearchResult(TargetFinder.TargetSearchResult targetSearchResult)
// This code demonstrates how to reuse an ImageTargetBehaviour for new search results and modifying it according to the metadata
// Depending on your application, it can make more sense to duplicate the ImageTargetBehaviour using Instantiate(),
// or to create a new ImageTargetBehaviour for each new result
// Vuforia will return a new object with the right script automatically if you use
// TargetFinder.EnableTracking(TargetSearchResult result, string gameObjectName)
//Check if the metadata isn't null
if(targetSearchResult.MetaData == null)
// enable the new result with the same ImageTargetBehaviour:
ImageTargetBehaviour imageTargetBehaviour = mImageTracker.TargetFinder.EnableTracking(targetSearchResult, mParentOfImageTargetTemplate);
if (imageTargetBehaviour != null)
// stop the target finder
mCloudRecoBehaviour.CloudRecoEnabled = false;
// Calls the TargetCreated Method of the SceneManager object to start loading
// the BookData from the JSON
Notice that the target finder is stopped whenever a trackable is successfully returned. If you comment-out that line, the target finder will continue to scan for new targets. But keep in mind that the target finder is only capable of enabling one target at a time, so once it discovers a new target, prior targets will be destroyed -though they can obviously be reacquired.
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?