public TextAnchor anchor;
Description 描述
Which point of the text shares the position of the Transform.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter; } }
Which point of the text shares the position of the Transform.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter; } }