The language the user's operating system is running in. Returned by 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 | Afrikaans. |
Arabic | Arabic. |
Basque | Basque. |
Belarusian | Belarusian. |
Bulgarian | Bulgarian. |
Catalan | Catalan. |
Chinese | Chinese. |
Czech | Czech. |
Danish | Danish. |
Dutch | Dutch. |
English | English. |
Estonian | Estonian. |
Faroese | Faroese. |
Finnish | Finnish. |
French | French. |
German | German. |
Greek | Greek. |
Hebrew | Hebrew. |
Icelandic | Icelandic. |
Indonesian | Indonesian. |
Italian | Italian. |
Japanese | Japanese. |
Korean | Korean. |
Latvian | Latvian. |
Lithuanian | Lithuanian. |
Norwegian | Norwegian. |
Polish | Polish. |
Portuguese | Portuguese. |
Romanian | Romanian. |
Russian | Russian. |
SerboCroatian | Serbo-Croatian. |
Slovak | Slovak. |
Slovenian | Slovenian. |
Spanish | Spanish. |
Swedish | Swedish. |
Thai | Thai. |
Turkish | Turkish. |
Ukrainian | Ukrainian. |
Vietnamese | Vietnamese. |
ChineseSimplified | ChineseSimplified. |
ChineseTraditional | ChineseTraditional. |
Unknown | Unknown. |
Hungarian | Hungarian. |
Did you find this page useful? Please give it a rating: