TextMesh.anchor 锚


var anchor : TextAnchor

Description描述

Which point of the text shares the position of the Transform

文本上的哪个点共享此变换的位置。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {void Awake() {GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter;}}
GetComponent(TextMesh).anchor = TextAnchor.MiddleCenter;


,