ImageTrackerBaseBehaviour is the component to control ImageTracker in the AR scene.
ImageTracker is used for image target detection and tracking. ImageTracker detects and tracks ImageTarget. You can call StartTrack/StopTrack to enable/disable the track process. StartTrack and StopTrack are very lightweight calls.
ImageTrackerBaseBehaviour should Bind to a DeviceAbstractBehaviour. This will be automatically done by the ARBuilder if you put ImageTrackerBaseBehaviour in the scene before everything start. If you add the component later in the scene, make sure to Bind it to a DeviceAbstractBehaviour, for example, Bind to a CameraDeviceBaseBehaviour.
You will receive TargetAbstractBehaviour.TargetFound / TargetAbstractBehaviour.TargetLost and ARCameraBaseBehaviour.TargetFound / ARCameraBaseBehaviour.TargetLost events when a target is found or lost.
(since 2.2.0) In 2.2.0, we enhanced the quality of tracking, but it may be slower and cost more energy on low-end phones. ImageTrackerMode.PreferQuality is the default mode. You can set the value to ImageTrackerMode.PreferPerformance in the editor or before start to keep a better performance with a little quality loss.
The ImageTargetBaseBehaviours currently loaded into the component.
The max number of targets which will be the simulatneously tracked by the tracker. The default value is 1.
Unload the ImageTargetBaseBehaviour and its target from the component.
Starts the track algorithm. The track will start only after the behaviour is Bind to a DeviceAbstractBehaviour. This will be automatically done by the ARBuilder if you put ImageTrackerBaseBehaviour in the scene before everything start.
Stops the track algorithm. Call StartTrack to start the track again.
The event for target load.
The event for target unload.