iLMS知識社群歷程檔Login
Position: 黃國哲 > Unity
20200404 連結外部網頁
by 黃國哲 2020-04-04 20:41:55, Reply(0), Views(645)



開啟外部網頁的語法





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/");
    }
}

Reply