Are there functions OnTrackingFound/OnTrackingLost like in Vuforia?

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

2 Answers

0 votes
answered Feb 14, 2019 by zhnagjian (11,130 points)
Hello,

EasyAR has functions like OnTrackingFound/OnTrackingLost. Many script files have.
0 votes
answered Feb 18, 2019 by cyliax (300 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.
...