Table of Contents

Class ImageTargetController

Namespace
easyar
Assembly
EasyAR.Sense.dll

Controls the ImageTarget in the scene, providing functional extensions in the Unity environment. After successful loading, you can use Target to access target data.

The data of the target is loaded separately. Loading occurs after the session starts successfully. It will only be fully loaded once in the lifecycle. If loading is interrupted halfway when the session stops, it will reload when the session starts next time.

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

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 ImageTargetController.SourceData Source { get; set; }

Property Value

Target

Target data is only available after TargetDataLoad is successful.

public ImageTarget Target { get; }

Property Value

Tracker

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

public ImageTrackerFrameFilter Tracker { get; set; }

Property Value

Events

TargetDataLoad

Target data loading completed (not loaded into the tracker).

public event Action<bool> TargetDataLoad

Event Type