Class ObjectTargetController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Control the ObjectTarget in the scene and the MonoBehaviour, providing function extension in the Unity environment. After successful loading, you can use Target to access target data.
The target data will be loaded separately. Loading will occur after the session starts successfully. It will be fully loaded only once in its lifecycle. If the session stops halfway through loading, it will be loaded again when the next session starts.
public class ObjectTargetController : TargetController
- Inheritance
-
ObjectTargetController
- Inherited Members
Properties
BoundingBox
The bounding box of Target. Only available after TargetDataLoad is successful.
public List<Vector3> BoundingBox { get; }
Property Value
Source
Create the data source for target. Modifications before MonoBehaviour.Start are only effective.
If there are referenced resources (such as Texture or Target), they can be destroyed in TargetDataLoad. Destroying them in advance will cause loading failure.
public ObjectTargetController.SourceData Source { get; set; }
Property Value
Target
Target data is only available after TargetDataLoad is successful.
public ObjectTarget Target { get; }
Property Value
Tracker
Load the ObjectTrackerFrameFilter for target. If set to null, the target will be unloaded from the previously set tracker. It can be modified at any time, and loading will only occur during session runtime.
public ObjectTrackerFrameFilter Tracker { get; set; }
Property Value
Events
TargetDataLoad
Target data loading is completed (not loaded into the tracker).
public event Action<bool> TargetDataLoad