Wikitude Unity Plugin
|
Object Trackables are used by Object Trackers to specify which augmentations correspond to which targets. It also provides information about tracking status. More...
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... | |
Properties | |
bool | ExtendedTracking [get, set] |
Toggles extended tracking. When set to true, target names in TargetsForExtendedTracking will be registered for extended tracking. More... | |
string[] | TargetsForExtendedTracking [get, set] |
Specifies the targets that will be used for extended tracking. Is only considered if ExtendedTracking is set to true. More... | |
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... | |
bool | AutoToggleVisibility [get, set] |
Specifies whether the trackable is automatically enabled or disabled based on the visibility of the target. More... | |
Object Trackables are used by Object Trackers to specify which augmentations correspond to which targets. It also provides information about tracking status.
Object Trackables are not moved during tracking, but the WikitudeCamera is placed relative to the tracked trackable.
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.
OnObjectLostEvent Wikitude.ObjectTrackable.OnObjectLost = new OnObjectLostEvent() |
Called when the tracked object target is lost.
ObjectTarget | Information about the target that was lost |
OnObjectRecognizedEvent Wikitude.ObjectTrackable.OnObjectRecognized = new OnObjectRecognizedEvent() |
Called when a new object target is recognized.
ObjectTarget | Information about the target that was recognized |
|
getset |
Toggles extended tracking. When set to true, target names in TargetsForExtendedTracking will be registered for extended tracking.
|
getset |
Specifies the targets that will be used for extended tracking. Is only considered if ExtendedTracking is set to true.
Can contain * to mean zero or more of any character and ? to mean zero or one of any character.
The targets for extended tracking.