Log in or register to post comments

OnTrackingFound Event

April 7, 2018 - 9:53am #1

Hi guys !

I'm really noob at C# but i would like to know how to do if i want to start/stop animation when target found/lost ?

For my project i want to start an animation of an animated 3D object when target found, and stop when target is lost, and then resume when found again.


I have seen something similar here (but with ARKIT) :



Thanks for help :)

OnTrackingFound Event

July 15, 2019 - 3:46am #4

Did you manage to get results, I am struggling to put the c# in the handler caus im also noob at this lol


i tried


animator anim;


then in the method i wrote




thats my understanding of c#

OnTrackingFound Event

April 8, 2018 - 8:33am #3

As i said, i'm noob at C#...

Could you show me how to use your script with for example an fbx animation ?

OnTrackingFound Event

April 7, 2018 - 4:32pm #2

Replace DefaultTrackableEventHandler.cs on your image targets with something like this.  Add your own code for stopping/starting to the methods


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;

public class MyDefaultTrackableEventHandler : DefaultTrackableEventHandler
protected override  void OnTrackingFound()
  base.OnTrackingFound ();

protected override void OnTrackingLost()
  base.OnTrackingLost ();
Log in or register to post comments