Version: 2023.1
言語: 日本語

SystemLanguage

enumeration

マニュアルに切り替える

説明

ユーザーの実行環境の言語を表します。この値は 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中国語簡体字(simplified)
ChineseTraditional中国語繁体字(traditional)
HindiHindi.
Unknown不明
Hungarianハンガリー語