Application.OpenURL 打开网址

static function OpenURL (url : string) : void


Opens the url in a browser.

在浏览器中打开url 。

In the editor or standalone player this will open a new page in the default browser with the url. It will also bring the browser application to the front.

在编辑器或者独立播放器模式下,这将在缺省的浏览器中使用新页打开url 。这将使浏览器位于前端。

When executed in the web player, the page the plugin is contained in will be redirected to the url.

但在网页中执行时,包含插件的页将被重定向到 url

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
function Start () {
	Application.OpenURL ("");
Page last updated: 2012-7-29