テキストのどの箇所がトランスフォームのポジションになるか。
GetComponent(TextMesh).anchor = TextAnchor.MiddleCenter;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: GetComponent[of TextMesh]().anchor = TextAnchor.MiddleCenter