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 ...
No credit card required