Wikitude Unity Expert Edition
|
Image Trackables are used by Image Trackers to specify which augmentations correspond to which targets. It also provides information about tracking status. More...
Public Attributes | |
OnImageRecognizedEvent | OnImageRecognized = new OnImageRecognizedEvent() |
Called when a new image target is recognized. More... | |
OnImageLostEvent | OnImageLost = new OnImageLostEvent() |
Called when the currently tracked image target is lost. More... | |
Properties | |
ScalingMode | ScalingMode [get, set] |
Defines the scaling mode, that should be applied on the target in the scene. 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... | |
Image Trackables are used by Image 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 OnEnable function is called on the parent tracker. Trackables added after that will not work correctly.
OnImageLostEvent Wikitude.ImageTrackable.OnImageLost = new OnImageLostEvent() |
Called when the currently tracked image target is lost.
ImageTarget | Information about the target that was lost |
OnImageRecognizedEvent Wikitude.ImageTrackable.OnImageRecognized = new OnImageRecognizedEvent() |
Called when a new image target is recognized.
ImageTarget | Information about the target that was recognized |
|
getset |
Defines the scaling mode, that should be applied on the target in the scene.