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.systemLanguage 系统语言
static var systemLanguage : SystemLanguage
Description描述
The language the user's operating system is running in.
用户操作系统正在运行的语言
You can use this to automatically pick a localization for your content based on the user's system language.
你可以使用这个自动调选一个本地的,为你的基于用户的系统语言的内容。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
guiText.text = Application.systemLanguage.ToString();
}
}
// Prints to a guiText the actual language that the system is using.
//系统使用的实际语言打印到界面文本
guiText.text = Application.systemLanguage.ToString();
最后修改:2011年7月20日 Wednesday 13:08