Class ImageTargetController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
A MonoBehaviour that controls ImageTarget 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 ImageTargetController : TargetController
- Inheritance
-
ImageTargetController
- Inherited Members
Properties
Size
The physical size of Target, in meters. Available only after TargetDataLoad succeeds.
public Vector2 Size { 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 ImageTargetController.SourceData Source { get; set; }
Target
Target data, available only after TargetDataLoad succeeds.
public ImageTarget Target { get; }
Tracker
The ImageTrackerFrameFilter 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 ImageTrackerFrameFilter Tracker { get; set; }
Events
TargetDataLoad
Target data loading completed (not loaded into the tracker).
public event Action<bool> TargetDataLoad