uhm…
how can i use GUI Button link system?
i can’t make linked Button(internet explorer)
uhm…
how can i use GUI Button link system?
i can’t make linked Button(internet explorer)
You can use this code to open a URL:
if(GUILayout.Button("Click Me")) {
Application.OpenURL("http://www.whydoidoit.com");
}
Apparently you can load other website urls, not sure why you would want to though
Use Application.OpenURL() called from inside a button.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AppController : MonoBehaviour {
public void LaunchUrl(string url){
Debug.Log("You have clicked the button!");
Application.OpenURL(url);
}
}