"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Disable Gameobject OnTrackingFound() and enable gameObject OnTrackingLost()

Hi,

I have a countdown script assigned to a gameObject to change from one scene to another. I need to disable the gameobject when OnTrackingFound() and reset the timer value to 0. Also enable the gameobject and counter from 0 when onTrackingLost(). How should i assign the gameobject in "DefaultTrackableEventHandler.cs" so that the expected scenario can be achieved?

 

 

Hi,

In this thread there is a code example on how to inherite and override the OnTrackingFound() /Lost() to fit your needs. 

Hope this helps.

Vuforia Engine Support