Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SystemLanguage

The language the user's operating system is running in. Returned by Application.systemLanguage.
Read time 2 minutesLast updated 5 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum SystemLanguage

Examples

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

Fields

Value

Description

AfrikaansIndicates that the operating system's language is Afrikaans.
ArabicIndicates that the operating system's language is Arabic.
BasqueIndicates that the operating system's language is Basque.
BelarusianIndicates that the operating system's language is Belarusian.
BulgarianIndicates that the operating system's language is Bulgarian.
CatalanIndicates that the operating system's language is Catalan.
ChineseIndicates that the operating system's language is Chinese.
ChineseSimplifiedIndicates that the operating system's language is ChineseSimplified.
ChineseTraditionalIndicates that the operating system's language is ChineseTraditional.
CzechIndicates that the operating system's language is Czech.
DanishIndicates that the operating system's language is Danish.
DutchIndicates that the operating system's language is Dutch.
EnglishIndicates that the operating system's language is English.
EstonianIndicates that the operating system's language is Estonian.
FaroeseIndicates that the operating system's language is Faroese.
FinnishIndicates that the operating system's language is Finnish.
FrenchIndicates that the operating system's language is French.
GermanIndicates that the operating system's language is German.
GreekIndicates that the operating system's language is Greek.
HebrewIndicates that the operating system's language is Hebrew.
HindiIndicates that the operating system's language is Hindi.
HungarianIndicates that the operating system's language is Hungarian.
IcelandicIndicates that the operating system's language is Icelandic.
IndonesianIndicates that the operating system's language is Indonesian.
ItalianIndicates that the operating system's language is Italian.
JapaneseIndicates that the operating system's language is Japanese.
KoreanIndicates that the operating system's language is Korean.
LatvianIndicates that the operating system's language is Latvian.
LithuanianIndicates that the operating system's language is Lithuanian.
NorwegianIndicates that the operating system's language is Norwegian.
PolishIndicates that the operating system's language is Polish.
PortugueseIndicates that the operating system's language is Portuguese.
RomanianIndicates that the operating system's language is Romanian.
RussianIndicates that the operating system's language is Russian.
SerboCroatianIndicates that the operating system's language is Serbo-Croatian.
SlovakIndicates that the operating system's language is Slovak.
SlovenianIndicates that the operating system's language is Slovenian.
SpanishIndicates that the operating system's language is Spanish.
SwedishIndicates that the operating system's language is Swedish.
ThaiIndicates that the operating system's language is Thai.
TurkishIndicates that the operating system's language is Turkish.
UkrainianIndicates that the operating system's language is Ukrainian.
UnknownIndicates that the operating system's language is unknown.
VietnameseIndicates that the operating system's language is Vietnamese.