- Home /
Question by
TEngle · Jul 13, 2013 at 06:28 PM ·
javascriptopenlink
Open a link
this is the scrip i made: function Update() { if(Input.GetButton("facebook")){ Application.OpenURL("https://www.google.com/"); } }
It dosnt work but i dont get any error messages. Any ideas?
Comment
Answer by ThisIsMarkS · Jul 16, 2013 at 03:26 PM
Try this:
void OnGUI () { if (GUI.Button(new Rect(50, 50, 204, 158), "google")) {Application.OpenURL("http://www.google.com");} }
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Physics driven cars without Wheel Colliders. Is it practicable? 1 Answer
GUI.Window Problem Option Menu 1 Answer