如何将 3d 文本更改为浮点数或整数,我知道如何更改 UI 文本,但我不确定如何使用 text mesh pro 更改 3d 文本。我用来更改 UI 文本的常用代码是这样的
public Text rotationText;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
rotationText.text = roattion.ToString();
}