Wikitude Unity Plugin
Public Member Functions | Public Attributes | Properties | List of all members
Wikitude.ObjectTracker Class Reference

Object Trackers are used to recognize and track objects defined in .wto files by using a TargetCollectionResource More...

Inheritance diagram for Wikitude.ObjectTracker:
Wikitude.TrackerBehaviour

Public Member Functions

void StopExtendedTracking ()
 Stops and immediately restarts extended tracking with a new tracking map. It is useful when tracking was lost and the user would like to return to the target to reinitialize extended tracking. More...
 

Public Attributes

OnExtendedTrackingQualityChangedEvent OnExtendedTrackingQualityChanged = new OnExtendedTrackingQualityChangedEvent()
 Called whenever the quality of extended tracking changes. During a tracking session, the extended tracking quality might get better or worse, depending on the scene that is captured. This method is also called when extended tracking processed the first frame. More...
 
- Public Attributes inherited from Wikitude.TrackerBehaviour
OnTargetsLoadedEvent OnTargetsLoaded = new OnTargetsLoadedEvent()
 Called when a tracker was successfully initialized. More...
 
OnErrorLoadingTargetsEvent OnErrorLoadingTargets = new OnErrorLoadingTargetsEvent()
 Called when the tracker could not be initialized.

Parameters
errorThe error describing what went wrong.
More...
 

Properties

TargetCollectionResource TargetCollectionResource [get, set]
 The Target Collection Resource that will load the .wto file that contains the objects that should be tracked. More...
 
TrackerEfficiencyMode TrackerEfficiencyMode [get, set]
 Defines the efficiency mode for the tracker. Has to be set before OnEnable is called, otherwise it will have no effect. More...
 

Detailed Description

Object Trackers are used to recognize and track objects defined in .wto files by using a TargetCollectionResource

When Object Trackers are created at runtime, make sure that all the relevant properties are set before the OnEnable method is called by Unity. At OnEnable, the native tracker is created and all information needs to be available.

Member Function Documentation

void Wikitude.ObjectTracker.StopExtendedTracking ( )
inline

Stops and immediately restarts extended tracking with a new tracking map. It is useful when tracking was lost and the user would like to return to the target to reinitialize extended tracking.

Member Data Documentation

OnExtendedTrackingQualityChangedEvent Wikitude.ObjectTracker.OnExtendedTrackingQualityChanged = new OnExtendedTrackingQualityChangedEvent()

Called whenever the quality of extended tracking changes. During a tracking session, the extended tracking quality might get better or worse, depending on the scene that is captured. This method is also called when extended tracking processed the first frame.

Property Documentation

TargetCollectionResource Wikitude.ObjectTracker.TargetCollectionResource
getset

The Target Collection Resource that will load the .wto file that contains the objects that should be tracked.

TrackerEfficiencyMode Wikitude.ObjectTracker.TrackerEfficiencyMode
getset

Defines the efficiency mode for the tracker. Has to be set before OnEnable is called, otherwise it will have no effect.