Hi! I've been looking all around the ITrackableEventHandler documentation and related forum posts, but can't seem to figure it out. I want to be able to get the name of the target that has been found. I read somewhere that you have to put the trackable event handler in the Image Target in Unity, but I'm dynamically loading a database of Image Targets, and ideally would be able to change the image target behaviour outside of specific image targets...is this possible?
Thanks! I would but I also can't compile the core samples, I have this error? Assets/SamplesResources/VuforiaSamplesUI/Scripts/SamplesAboutScreenInfo.cs(77,58): error CS1061: Type `Vuforia.VuforiaRuntime' does not contain a definition for `InitializationState' and no extension method `InitializationState' of type `Vuforia.VuforiaRuntime' could be found. Are you missing an assembly reference?
Which version of Unity and Vuforia are you using? You can check the Vuforia version in the Vuforia Configuration file.
I can take a look without compiling, but could you direct me to the scene and/or script I should be looking into?
DefaultTrackableEventHandler has this functionality. Look into the OnTrackableStateChanged function. Also, in terms of why your core samples aren't compiling, you'll need to upgrade your Vuforia Version from 7.1.31 to 7.1.34. There should be a link to do this in the Vuforia Configuration.
Hello! I think the forum doesn't allow me to post as it says I don't have enough "privileges". So I thought I would ask here as it is related to the topic: I have 3 Target Images on Vuforia. Each of them has an audiosource as child. I also have a UI with a canva and a button. I want the button to play the AudioSource of the Image tracked at the moment. I am learning C# but I am really lost on how to recall the Default Trackable Event Handler in order to recognize the tracked Image, and then say: get the respective AudioSource and Play it! Please help me!