ObjectTrackerFrameFilter Class

Description

MonoBehaviour which controls ObjectTracker in the scene, providing a few extensions in the Unity environment.


Properties

enabled

C#

public bool enabled { get; set; }

Start/Stop tracking when ARSession is running. Tracking will start only when MonoBehaviour .enabled is true after session started.

Targets

C#

public List< ObjectTargetController > Targets { get; }

ObjectTargetController that has been loaded.

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.

EnableMotionFusion

C#

public bool EnableMotionFusion { get; set; }

Enable motion fusion. Overwrites ObjectTrackerFrameFilter.SetResultPostProcessing .


Events

TargetLoad

C#

public event Action< ObjectTargetController , bool> TargetLoad

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

TargetUnload

C#

public event Action< ObjectTargetController , bool> TargetUnload

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


Methods

SetResultPostProcessing

C#

public void SetResultPostProcessing(bool enablePersistentTargetInstance)

Sets result post-processing. Overwrites ObjectTrackerFrameFilter.EnableMotionFusion . Only effective if modified before the session starts.