Version: 2022.1
言語: 日本語
public TextAlignment alignment ;

説明

テキストの横方向の表示位置を設定する (Left, Right, Center)

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().alignment = TextAlignment.Left; } }