用户操作系统运行时所使用的语言。由 Application.systemLanguage 返回。
using UnityEngine;
public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the French language if (Application.systemLanguage == SystemLanguage.French) { //Outputs into console that the system is French Debug.Log("This system is in French. "); } //Otherwise, if the system is English, output the message in the console else if (Application.systemLanguage == SystemLanguage.English) { Debug.Log("This system is in English. "); } } }
Afrikaans | 南非荷兰语。 |
Arabic | 阿拉伯语。 |
Basque | 巴斯克语。 |
Belarusian | 白俄罗斯语。 |
Bulgarian | 保加利亚语。 |
Catalan | 加泰罗尼亚语。 |
Chinese | 中文。 |
Czech | 捷克语。 |
Danish | 丹麦语。 |
Dutch | 荷兰语。 |
English | 英语。 |
Estonian | 爱沙尼亚语。 |
Faroese | 法罗语。 |
Finnish | 芬兰语。 |
French | 法语。 |
German | 德语。 |
Greek | 希腊语。 |
Hebrew | 希伯来语。 |
Icelandic | 冰岛语。 |
Indonesian | 印尼语。 |
Italian | 意大利语。 |
Japanese | 日语。 |
Korean | 韩语。 |
Latvian | 拉脱维亚语。 |
Lithuanian | 立陶宛语。 |
Norwegian | 挪威语。 |
Polish | 波兰语。 |
Portuguese | 葡萄牙语。 |
Romanian | 罗马尼亚语。 |
Russian | 俄语。 |
SerboCroatian | 塞尔维亚-克罗地亚语。 |
Slovak | 斯洛伐克语。 |
Slovenian | 斯洛维尼亚语。 |
Spanish | 西班牙语。 |
Swedish | 瑞典语。 |
Thai | 泰语。 |
Turkish | 土耳其语。 |
Ukrainian | 乌克兰语。 |
Vietnamese | 越南语。 |
ChineseSimplified | 简体中文。 |
ChineseTraditional | 繁体中文。 |
Unknown | 未知。 |
Hungarian | 匈牙利语。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.