using System; using UnityEngine; using UnityEngine.UI; public class LinkButton : MonoBehaviour { public string url; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { GetComponent< Button>().onClick.AddListener(Open); } public void Open() { Application.OpenURL(url); } }