Application.isWebPlayer 是否网络播放器

static var isWebPlayer : bool

Description描述

Are we running inside a web player? (Read Only)

是否在一个网络播放器中运行?(只读)

Returns true if the game is being run from the Unity web player.

如果这个游戏在UNITY网络播放器中运行则返回真。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		if (Application.isWebPlayer)

			print("We are running this from inside of the web player!");



	}

}
if (Application.isWebPlayer) {

	print("We are running this from inside of the web player!");

}
Page last updated: 2010-12-14