Query on buttons/images inside of your project that will re-direct you to a website

Hi Unity devs,

I’ve looked at the documentation available on the wiki (Unity Manual) in regards to opening a URL/Website when someone clicks on the image/button however, It simply doesn’t work (in 2018.2.17f).

Is this feature still available within Unity?

Thanks

The API you are looking for is:

Application.OpenURL("https://itunes.apple.com/us/developer/kurt-dekker/id680019078");

Thanks Kurt!

This is exactly what I have been using, and it still fails? When you either attach this script to a button or just an image, and click on it, nothing happens.

Is there anything I’m missing out?

Right next to (above or below) the above statement, put in something like this:

Debug.Log("I made it here!");

That way you can tell if the code is even being called.

Hi Kurt!

Would help if I actually called the function…!

Thanks,

1 Like

If I had a dollar for every time I committed this exact bug, I would be a much richer man.