Unity – Open URL – OnClick

1. MAIN TOO MENU> GameObject> Create Other> Cube> Inspector> ‘Add Component’> New Script> Javascript> OpenUrl.js

OpenUrl.js


#pragma strict

function Update() {
}

function OnMouseDown ()
{
        // When you click over the object the web browser will start
        Application.OpenURL ("http://lucedigitale.com/"); 
}