Application.OpenURL()的妙用:unity打开网页,唤醒应用,打开文件夹
开发环境unity2018.4.9
示例代码:
_URL.onClick.AddListener(() =>
{
Application.OpenURL("weixin://");//移动端打开微信应用
});
http.onClick.AddListener(() =>
{
Application.OpenURL("http://www.baidu.com");//传送至此链接
});
openfile.onClick.AddListener(() => {
Application.OpenURL(@"file://E:\googledownload\");//打开e盘googledownload文件夹,开发小工具常用
});