Class ObjectTargetController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
A MonoBehaviour that controls ObjectTarget in the scene, providing functional extensions in the Unity environment. After loading succeeds, target data can be accessed through Target.
The target data is loaded separately. Loading occurs after the session starts successfully, and a complete load happens only once during the lifecycle. If the session stops halfway through loading, it will load again after the next session startup.
public class ObjectTargetController : TargetController
- Inheritance
-
ObjectTargetController
- Inherited Members
Properties
BoundingBox
The bounding box of the Target. Available only after TargetDataLoad succeeds.
public List<Vector3> BoundingBox { get; }
Source
The data source used to create the target. Changes take effect only before MonoBehaviour.Start.
If referenced resources exist, such as Texture or Target, they can be destroyed in TargetDataLoad; destroying them earlier will cause loading to fail.
public ObjectTargetController.SourceData Source { get; set; }
Target
Target data, available only after TargetDataLoad succeeds.
public ObjectTarget Target { get; }
Tracker
The ObjectTrackerFrameFilter that loads the target. If set to null, the target will be unloaded from the previously set tracker. It can be changed at any time, and loading occurs only while the session is running.
public ObjectTrackerFrameFilter Tracker { get; set; }
Events
TargetDataLoad
Target data loading completed (not loaded into the tracker).
public event Action<bool> TargetDataLoad