文档

Unity Engine

Unity Engine

ChineseSimplified

Indicates that the operating system's language is ChineseSimplified.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
ChineseSimplified = 40

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { //This checks if your computer's operating system is in the Simplified Chinese language if (Application.systemLanguage == SystemLanguage.ChineseSimplified) { //Outputs into console that the system is in Simplified Chinese Debug.Log("This system is in Simplified Chinese. "); } }}