Table of Contents

Class ImageTargetController

Namespace
easyar
Assembly
EasyAR.Sense.dll

Control the ImageTarget's MonoBehaviour in the scene, providing function extension in the Unity environment. After successful loading, you can use Target to access target data.

The target's data is loaded separately. Loading will occur after the session starts successfully. It will only be fully loaded once in the lifecycle. If the session stops halfway through loading, it will be loaded again after the next session starts.

public class ImageTargetController : TargetController
Inheritance
ImageTargetController
Inherited Members

Properties

Size

The physical size of Target, in meters. Only available after TargetDataLoad is successful.

public Vector2 Size { get; }

Property Value

Source

The data source for creating the target. It is only effective to modify before MonoBehaviour.Start.

If there are referenced resources (Texture or Target, etc.), they can be destroyed in TargetDataLoad. Destroying in advance will cause loading failure.

public ImageTargetController.SourceData Source { get; set; }

Property Value

Target

The target data is only available after TargetDataLoad is successful.

public ImageTarget Target { get; }

Property Value

Tracker

Load the target's ImageTrackerFrameFilter. 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 when the session is running.

public ImageTrackerFrameFilter Tracker { get; set; }

Property Value

Events

TargetDataLoad

The target data is fully loaded (not loaded into the tracker).

public event Action<bool> TargetDataLoad

Event Type