how to make an web link?

hello

I need some help, For my game i need a menu button so when pressed it opens a web browser to my website but I dont know how to do it

Please can someone help

Thanks

hi dalekandjedi,

here you didn’t specify that which type of build you’re trying with, if it’s webplayer build, hope this link will help you.

http://answers.unity3d.com/questions/50138/open-link-in-new-tab-from-webplayer-hosted-on-any.html

void OnGUI () 
{   
    if(GUILayout.Button("Google"))
    {
        Application.ExternalEval("window.open('http://www.google.com', '_blank');");
    }
}

Is there a way to replace the ‘http://’ content with a variable and still allow the ExternalEval to work properly???

eg.

public var linkURL = “http://www.google.com”;

Application.ExternalEval(“window.open( linkURL, ‘_blank’);”); … does not work

So far I’ve been slightly unsucessful in overcoming this. Anyone know how to solve this issue???