Are there functions OnTrackingFound/OnTrackingLost like in Vuforia?

+1 vote
asked Feb 13 by burtimax (130 points)

2 Answers

0 votes
answered Feb 14 by zhnagjian (9,220 points)
Hello,

EasyAR has functions like OnTrackingFound/OnTrackingLost. Many script files have.
0 votes
answered Feb 18 by cyliax (270 points)

You can register for this events on the targets or on arcameras like this:

        var arCameraBehaviours = ARBuilder.Instance.ARCameraBehaviours;
        foreach (var arCameraBehaviour in arCameraBehaviours)
        {
            arCameraBehaviour.TargetFound -= OnTargetFound;
            arCameraBehaviour.TargetFound += OnTargetFound;
            arCameraBehaviour.TargetLost -= OnTargetLost;
            arCameraBehaviour.TargetLost += OnTargetLost;
        } 

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...