By caesargaius
on Thu, 06/22/2017 - 07:24
Hi!
I'm basically a newbie with Unity.
I've successfully implemented the basic AR app. Now I would like to add a virtual button to my model that, upon click, would open a URL on the phone's browser (Android, iOS). I tried using unity's add button and adding the Application.OpenURL script but the button is always active. I would like it to appear only when the image is recognized.
Can anyone help me with this?
Hi,
Hi,
In your "TrackableEventHandler.cs" find method OnTrackingFound() and add yourButton.setActive(true), next in OnTrackingLost() add yourButton.setActive(false)
Hello caesargaius,
Hello caesargaius,
This page describes how to setup and use Virtual Buttons in Vuforia: https://library.vuforia.com/articles/Solution/How-To-Implement-Virtual-Buttons