Hi,
You can call AddListener on the event property with the method you wish to be called as a parameter. You can look at the RuntimeTrackerController.OnLoadedTracker method in the examples, which creates an ImageTracker at runtime and registers events to it.
Best regards,
Alexandru
AN TA
How can I register event call from scripts to receive events such as:
OnEnterFieldOfVision, OnExitFieldOfVision, OnStateChanged
I know we can drag and drop function via Event of "InstantTracker" event list. But it is quite inconvenient .
Thanks