0
点赞
收藏
分享

微信扫一扫

关于TextMeshPro的命名空间与组件获取

浮游图灵 2022-01-31 阅读 50
unityunity3d

使用Text(TMP)需要引用命名空间TMPro
组件的名称为TMP_Text

using TMPro

public class UIManager : MonoBehaviour
{
    public TMP_Text testMeshPro;

    private void Start() {
        testMeshPro.text = "This is a test sentence";
    }
}

感谢 https://blog.csdn.net/qq_37672864/article/details/104502501

举报

相关推荐

0 条评论