iLMS知識社群歷程檔登入
位置: 黃國哲 > Unity
20200404 連結外部網頁
by 黃國哲 2020-04-04 20:41:55, 回應(0), 人氣(591)



開啟外部網頁的語法





using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class net : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
           if (Input.GetMouseButtonDown(0))
           Application.OpenURL("http://unity3d.com/");
    }
}

回應