I am building an ar app in unity using vuforia.
I have created a virtual button.
On the click of this virtual button I want to use an Intent to open a web browser with an url.
How can I do it in Unity?
Hi, first, you can detect the virtual button event (button pressed / button released) using an IVirtualButtonEventHandler, as shown in the Virtual Button sample;
then, to start an Android Intent you need to use the plugin mehanism which allows you to call Android Java code from Unity:
this is explained here:
We also have a small tutorial about how to integrate Java Android plugins into a Vuforia-based Unity project; this is probably a useful starting point:
I hope this helps.
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?