お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close言語はユーザーのオペレーティングシステムで実行されているものです。
これは自動的にユーザーのシステム言語を基にしてコンテンツのローカライズを行うことが出来ます。
// Prints to a guiText the actual language that the system is using. guiText.text = Application.systemLanguage.ToString();
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { guiText.text = Application.systemLanguage.ToString(); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: guiText.text = Application.systemLanguage.ToString()