Wikitude Unity Expert Edition
Public Attributes | List of all members
Wikitude.ObjectTrackable Class Reference

Object Trackables are used by Object Trackers to specify which augmentations correspond to which targets. It also provides information about tracking status. More...

Inheritance diagram for Wikitude.ObjectTrackable:
Wikitude.Trackable

Public Attributes

OnObjectRecognizedEvent OnObjectRecognized = new OnObjectRecognizedEvent()
 Called when a new object target is recognized. More...
 
OnObjectLostEvent OnObjectLost = new OnObjectLostEvent()
 Called when the tracked object target is lost. More...
 

Additional Inherited Members

- Properties inherited from Wikitude.Trackable
string TargetPattern [get, set]
 Gets or sets the target pattern that identify which targets from the collection should be used for this trackable. More...
 
GameObject Drawable [get, set]
 Gets or sets the drawable that should be instantiated when a new target is recognized. In case the tracker for this trackable can track multiple targets, multiple instances of this drawable will be created. When the target corresponding to an instantiated drawable is lost, the drawable is destroyed with it. If the drawable is set to null, an empty GameObject will be created instead. You can access this GameObject through the Drawable property of the Target parameter that gets passed in an OnRecognized callback. More...
 

Detailed Description

Object Trackables are used by Object Trackers to specify which augmentations correspond to which targets. It also provides information about tracking status.

When trackables are created at runtime, make sure that it is set as a child of the tracker responsible for the tracker and that the relevant properties are set before the Start function is called on the parent tracker. Trackables added after that will not work correctly.

Member Data Documentation

OnObjectLostEvent Wikitude.ObjectTrackable.OnObjectLost = new OnObjectLostEvent()

Called when the tracked object target is lost.

Parameters
ObjectTargetInformation about the target that was lost
OnObjectRecognizedEvent Wikitude.ObjectTrackable.OnObjectRecognized = new OnObjectRecognizedEvent()

Called when a new object target is recognized.

Parameters
ObjectTargetInformation about the target that was recognized