Target Class

This type is an EasyAR Sense API in C#: Target . 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.

Description

Target is the base class for all targets that can be tracked by ImageTracker or other algorithms inside EasyAR.


Methods

runtimeID

C#

public virtual int runtimeID()

Returns the target id. A target id is a integer number generated at runtime. This id is non-zero and increasing globally.

uid

C#

public virtual string uid()

Returns the target uid. A target uid is useful in cloud based algorithms. If no cloud is used, you can set this uid in the json config as a alternative method to distinguish from targets.

name

C#

public virtual string name()

Returns the target name. Name is used to distinguish targets in a json file.

setName

C#

public virtual void setName(string name)

Set name. It will erase previously set data or data from cloud.

meta

C#

public virtual string meta()

Returns the meta data set by setMetaData. Or, in a cloud returned target, returns the meta data set in the cloud server.

setMeta

C#

public virtual void setMeta(string data)

Set meta data. It will erase previously set data or data from cloud.