unity3d中调用别的exe应用程序方法
·
using UnityEngine;
using System.Collections;
using System.Diagnostics;
public class LoadExe : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
if(GUI.Button(new Rect(20,20,100,45),"Notepad"))
{
Process.Start("notepad");
}
}
}
using System.Collections;
using System.Diagnostics;
public class LoadExe : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
if(GUI.Button(new Rect(20,20,100,45),"Notepad"))
{
Process.Start("notepad");
}
}
}
更多推荐


所有评论(0)