"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

How to run a function inside Vuforia's DefaultTrackableEventHandler.cs

I'm trying to run a function inside DefaultTrackableEventHandler.cs after Vuforia detects the target by using the protected virtual void OnTrackingFound() but Vuforia can't detect the namespace that I'm using which is saved inside the Assets folder plus whenever I restart Visual Studio, every code that I've added to the DefaultTrackableEventHandler is deleted and the file is reset back to its original state. I think the problem might lie in the fact that DefaultTrackableEventHandler.cs is located inside the Packages folder while the script that I'm using for the namespace is inside the Assets folder.

How do I resolve this issue?

renand2xgrafica

Thu, 02/18/2021 - 03:43

In reply to by mcotora

Hi!

 

I'm facing the same issue. I tried to inherit from DefaultTrackableEventHandler and override the OnTrackingFound(), but it seems to ignore the my OnTrackingFound method and runs the default one from Vuforia Package.

What could i possibly do?