Z.TargetInstance
Inherits from Z.Node
Description
When a Target is detected by a TargetFinder, a TargetInstance is created. If more than one copy of the same Target exists within the camera feed, multiple TargetInstances will be created.
While this API supports multiple Targets and TargetInstances, at present ZapWorks Studio only supports one Target and one TargetInstance.
Provided by Z.TargetInstance
Events
notseen |
Emitted when this instance of the target is no longer detected in the camera feed. |
seen |
Emitted when this instance of the target is detected in the camera feed. |
Functions
identifier( ) |
Gets the identifier of the TargetInstance. |
useGyro( ) |
Gets if the TargetInstance has been instructed to use the gyro. |
useGyro(...) |
Sets if the TargetInstance should use the gyro. |
Inherited from Z.Node
Functions
Inherited from Z.Base
Functions
emit(...) |
Calls the handler functions attached to an event. |
hasTag(...) |
Returns true if this object has the specified tag. |
off(...) |
Removes a handler function from an event. |
on(...) |
Attaches a handler function to an event. |
one(...) |
Attaches a single-use handler function to an event. |
pushTag(...) |
Adds a tag to this object. |
removeTag(...) |
Removes a tag from this object. |
tags( ) |
Gets an array of the tags that this object belongs to. |
tags(...) |
Sets the array of the tags that this object belongs to. |