Log in or register to post comments

to change DefaultTrackableEventHandler.cs,

December 29, 2019 - 10:35pm #2

Hi,

I changed the  DefaultTrackableEventHandler.cs, 

 adding to protected virtual void OnTrackingFound()

and protected virtual void OnTrackingLost()

events for videoPlayer.

And it works.

But when I close the project and open it next time 

DefaultTrackableEventHandler.cs, returns to its previous version.

How can I made changes permanent?

to change DefaultTrackableEventHandler.cs,

December 30, 2019 - 2:20pm #1

Subclass DefaultTrackableEventHandler and override.  Something like below. 

public class MyDefaultTrackableEventHandler : DefaultTrackableEventHandler
{
protected override  void OnTrackingFound()
{
  base.OnTrackingFound ();
  // your code here
}
 
protected override void OnTrackingLost()
{
  base.OnTrackingLost ();
  // your code here
}

} 
Log in or register to post comments