Table of Contents

Class ObjectTargetController

Namespace
easyar
Assembly
EasyAR.Sense.dll

Controls the ObjectTarget of MonoBehaviour, providing feature extensions in the Unity environment. After successful loading, you can use Target to access target data.

Target data is loaded separately. Loading occurs after the session starts successfully. It will only be fully loaded once in the lifecycle. If the session stops during loading, it will be reloaded after the next session starts.

public class ObjectTargetController : TargetController
Inheritance
ObjectTargetController
Inherited Members

Properties

BoundingBox

Bounding box of the target. Available only after TargetDataLoad is successful.

public List<Vector3> BoundingBox { get; }

Property Value

Source

Creates the data source for the target. Modifications are only effective before MonoBehaviour.Start.

If there are referenced resources (such as Texture or Target), they can be destroyed in TargetDataLoad. Destroying them prematurely will cause loading to fail.

public ObjectTargetController.SourceData Source { get; set; }

Property Value

Target

Target data, available only after TargetDataLoad is successful.

public ObjectTarget Target { get; }

Property Value

Tracker

Loads the ObjectTrackerFrameFilter for the target. If set to null, the target will be unloaded from the previously set tracker. Can be modified at any time; loading only occurs when the session is running.

public ObjectTrackerFrameFilter Tracker { get; set; }

Property Value

Events

TargetDataLoad

Target data loading is complete (not loaded into the tracker).

public event Action<bool> TargetDataLoad

Event Type