"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

Event Handlers?

Hey all!

I've been working with Vuforia off and on for the last year. Some great updates came and all is looking great. One big feature I either totally missed, or hasn't even been implemented, is events INSIDE the DefaultTrackableEventHandler?

Some events inside of it like: OnTracked, OnLost, etc. where you can hook up your own scripts. Right now I have to put all my code inside of the DTVH, which is terribly inconvenient and not modular at all... How do you guys use it, and what's your opinion about it?

Hello patrickscheperhds,

You can make your own scripts listen for these trackable events. If you make your own class inherit from ITrackableEventHandler and register it with a TrackableBehaviour similar to how DefaultTrackableEventHandler does you can listen for the same events.