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.platform 平台
static var platform : RuntimePlatform
Description描述
Returns the platform the game is running (Read Only).
返回游戏运行的平台(只读)。
Use this property if you absolutely need to do some platform dependent work. See Also: RuntimePlatform
如果你要做一些平台相关的操作使用这个属性。
另参见: RuntimePlatform
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
if (Application.platform == RuntimePlatform.WindowsPlayer)
print("Do something special here!");
}
}
function Start () {
if (Application.platform == RuntimePlatform.WindowsPlayer)
print ("Do something special here!");
}
最后修改:2011年7月20日 Wednesday 13:07