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();