ユーザーの実行環境の言語を表します。この値は 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) |
| Unknown | 不明 |
| Hungarian | ハンガリー語 |