Answers for "unity textmeshpro get text component"

C#
6

unity textmeshpro

using UnityEngine;
using TMPro;

public class quizManager : MonoBehaviour
{
    public TextMeshProUGUI text;
    // Start is called before the first frame update
    void Start()
    {
        text.text = "example";
    }
}
Posted by: Guest on June-03-2021
3

get text component unity

GameObject.GetComponent<Text>().text = "Hello World!";
Posted by: Guest on December-23-2020

C# Answers by Framework

Browse Popular Code Answers by Language