Application翻译:^牛^魔王
- absoluteURL
- backgroundLoadingPriority
- CancelQuit
- CanStreamedLevelBeLoaded
- CaptureScreenshot
- dataPath
- ExternalCall
- ExternalEval
- GetStreamProgressForLevel
- internetReachability
- isEditor
- isLoadingLevel
- isPlaying
- isWebPlayer
- levelCount
- loadedLevelName
- loadedLevel
- LoadLevelAdditiveAsync
- LoadLevelAdditive
- LoadLevelAsync
- LoadLevel
- LogCallback
- OpenURL
- persistentDataPath
- platform
- Quit
- RegisterLogCallbackThreaded
- RegisterLogCallback
- runInBackground
- srcValue
- streamedBytes
- systemLanguage
- targetFrameRate
- temporaryCachePath
- unityVersion
- webSecurityEnabled
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!");
}
最后修改:2010年12月14日 Tuesday 22:31