TargetInstance Class

This type is an EasyAR Sense API in C#: TargetInstance . Some descriptions may not apply to Unity environment on this page.

Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.


TargetInstance is the tracked target by trackers.

An TargetInstance contains a raw Target that is tracked and current status and pose of the Target .




public virtual TargetStatus status()

Returns current status of the tracked target. Usually you can check if the status equals TargetStatus.Tracked to determine current status of the target.



public virtual Optional< Target > target()

Gets the raw target. It will return the same Target you loaded into a tracker if it was previously loaded into the tracker.



public virtual Matrix44F pose()

Returns current pose of the tracked target. Camera coordinate system and target coordinate system are all right-handed. For the camera coordinate system, the origin is the optical center, x-right, y-up, and z in the direction of light going into camera. (The right and up, on mobile devices, is the right and up when the device is in the natural orientation.) The data arrangement is row-major, not like OpenGL’s column-major.