"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Adding a VIrtual Button to open a URL

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? 

krzysztofz

Fri, 06/23/2017 - 10:44

Hi,

In your "TrackableEventHandler.cs" find method OnTrackingFound() and add yourButton.setActive(true), next in OnTrackingLost() add yourButton.setActive(false)

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