public TextAlignment alignment;
Description 描述
How lines of text are aligned (Left, Right, Center).
using UnityEngine;
public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().alignment = TextAlignment.Left; } }
How lines of text are aligned (Left, Right, Center).
using UnityEngine;
public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().alignment = TextAlignment.Left; } }