ObjectTrackerFrameFilter Class

Description

MonoBehaviour which controls ObjectTracker in the scene, providing a few extensions in the Unity environment. Use ObjectTrackerFrameFilter.Tracker directly when necessary.


MonoBehaviour Messages

protected virtual void Awake()

protected virtual void OnEnable()

protected virtual void OnDisable()

protected virtual void OnDestroy()


Properties

Tracker

C#

public ObjectTracker Tracker { get; }

EasyAR Sense API. Accessible after Awake if available.

SimultaneousNum

C#

public int SimultaneousNum { get; set; }

The max number of targets which will be the simultaneously tracked by the tracker. Modify at any time and takes effect immediately.

TargetControllers

C#

public List< TargetController > TargetControllers { get; }

TargetController that has been loaded.

EnableMotionFusion

C#

public bool EnableMotionFusion { get; set; }

Enable motion fusion.

Motion fusion will only work when a) one type of motion tracking is running and b) target scale is set to the scale in real world and c) the target does not move in real world.


Events

TargetLoad

C#

public event Action< ObjectTargetController , Target , bool> TargetLoad

Target load finish event. The bool value indicates the load success or not.

TargetUnload

C#

public event Action< ObjectTargetController , Target , bool> TargetUnload

Target unload finish event. The bool value indicates the unload success or not.


Methods

LoadTarget

C#

public void LoadTarget( ObjectTargetController target)

Load target.

UnloadTarget

C#

public void UnloadTarget( ObjectTargetController target)

Unload target.