Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

I'm trying to run a function inside DefaultTrackableEventHandler.cs after Vuforia detects the target

Discussion in 'Vuforia' started by fasmilano, Sep 21, 2019.

  1. fasmilano

    fasmilano

    Joined:
    Sep 7, 2019
    Posts:
    2
    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?
     
  2. Sika_MC

    Sika_MC

    Vuforia

    Joined:
    Jul 17, 2019
    Posts:
    34