O'Reilly logo

Developing AR Games for iOS and Android by Dominic Cushnan, Hassan EL Habbak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Vuforia trackable event handler

More often than not, we need to attach a certain behavior that triggers when a trackable is found. To do this, we must understand how to keep a track of trackable events, such as trackable found or trackable lost. Vuforia makes this easy for us by providing a template script named DefaultTrackableEventHandler. This script is by default attached to any ImageTarget prefab. It should be there now in our ImageTarget object in the scene.

What the script does is it handles the event of a trackable found or a trackable lost. It is the script responsible for rendering the 3D content when the trackable is found, and making it disappear when it is lost as well. It is important to notice that it is however not responsible for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required