Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to reference text mesh pro unity

using UnityEngine;
using TMPro;

public class Score : MonoBehaviour
{
    public TextMeshProUGUI text;
    public static int Score;

    // Use this for initialization
    void Start()
    {
        text = GetComponent<TextMeshProUGUI>();
    }

    // Update is called once per frame
    void Update()
    {
        text.text = NewScore.ToString();
    }
}
 
PREVIOUS NEXT
Tagged: #reference #text #mesh #pro #unity
ADD COMMENT
Topic
Name
9+9 =