ObjectTarget Class

Inherits: Base

Description

ObjectTarget represents 3D object targets that can be tracked by ObjectTrackerBaseBehaviour.

The size of ObjectTarget is determined by the obj file. You can change it by changing the object scale, which is default to 1.

ObjectTarget can be tracked by ObjectTrackerBaseBehaviour after a successful load into the ObjectTrackerBaseBehaviour explicitly using ObjectTrackerBaseBehaviour.LoadObjectTargetBehaviour or implicitly using ObjectTargetBaseBehaviour.Bind. ObjectTrackerBaseBehaviour.TargetLoad and ObjectTargetBaseBehaviour.TargetLoad event will be triggered after load.

Public Properties

int Id
string MetaData
string Name
string Uid
Vector3[] BoundingBox
float Scale
Target Target

Public Functions

static ObjectTarget FromTarget(Target target)

int Id

The target id. A target id is a int number generated at runtime, it is valid (non-zero) only after a successful setup.

string Uid

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 an alternative method to distinguish from targets.

string Name

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

string MetaData

The meta data.

A set operation will set the data as string. It will erase previously set data or data from cloud.

Vector3[] BoundingBox

The bounding box of object, it contains the 8 points of the box.

float Scale

Scale of the ObjectTarget. Default value is 1.

Target Target

Convert to Target.

static ObjectTarget FromTarget(Target target)

Convert Target to ObjectTarget.