お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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使用されるフォントのサイズ(ダイナミックフォント用)。
これが0以外の値に設定されている場合、フォントインポーターのが指定したフォントサイズはカスタムサイズへ上書きされます。 これはダイナミックフォントレンダリングを使用する場合のみにサポートされます。他のフォントは常にデフォルトのフォントサイズを使用します。
GetComponent(TextMesh).fontSize = 12;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { GetComponent<TextMesh>().fontSize = 12; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: GetComponent[of TextMesh]().fontSize = 12