Wikitude Unity Plugin
|
Object Trackers are used to recognize and track objects defined in .wto files by using a TargetCollectionResource More...
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... | |
void | UpdateAlignmentPose (Matrix4x4 pose) |
Sends an update of the alignments pose to the SDK if alignment initialization has been chosen as the recognition type by setting ObjectTracker.UseAlignmentInitialization. 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 targets could not be loaded.
| |||
OnInitializationErrorEvent | OnInitializationError = new OnInitializationErrorEvent() | ||
Called when the tracker could not be initialized.
| |||
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... | |
string | TargetNameForAlignmentInitialization [get, set] |
Defines the name for the target of the object tracker to be used for alignment initialization. More... | |
bool | UseAlignmentInitialization [get, set] |
Defines if alignment initialization should be used as the recognition type of the object tracker. More... | |
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.
|
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.
|
inline |
Sends an update of the alignments pose to the SDK if alignment initialization has been chosen as the recognition type by setting ObjectTracker.UseAlignmentInitialization.
pose | The pose of the alignment should contain its location, rotation and scale. The inputted scale should be set to 1 on all axes and the translation - or better said, the distance from the camera - should be adjusted for scaling purposes. |
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.
|
getset |
The Target Collection Resource that will load the .wto file that contains the objects that should be tracked.
|
getset |
Defines the name for the target of the object tracker to be used for alignment initialization.
|
getset |
Defines the efficiency mode for the tracker. Has to be set before OnEnable is called, otherwise it will have no effect.
|
getset |
Defines if alignment initialization should be used as the recognition type of the object tracker.