Version: 2021.3

SystemLanguage.ChineseSimplified

切换到手册

描述

简体中文。

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. "); } } }