I want to open a pdf file whenever my image target is tracked.
I know that if i want to open a pdf file with Unity i need to write this: Application.OpenURL("file:///c:/filename.PDF");
but i want it to open only if the image target is tracked.
I think one possible way to solve this would be to change the DefaultTrackableEventHandler.cs so it will contain a boolean that will change when tracking is found=true \ lost=false.
Anybody here know how to achieve this with Unity and Vuforia?Thanks guys
In DefaultTrackableEventHandler.cs you will find a function onTrackingFound() add your code in this function and it will run whenever a target is found.