Hi all,
I’m having an issue with the TextMesh Pro Text, I have a TextMeshPro Component in my scene with some test text in for now.
I also have the following script locating the component and changing the text.(located in a different game object)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class Clicked : MonoBehaviour
{
public TextMeshPro ClickCounter;
// Start is called before the first frame update
void Start()
{
GameObject counter = GameObject.Find("ClickCount");
ClickCounter = counter.GetComponent<TextMeshPro>();
//ClickCounter.SetText("IT WORKED");
}
}
in the inspector the text changes
but the text its self isn’t showing in the game window.
iv googled and found a number of forums and post about two different types of text mesh?
TexteshPro and TextMeshProUGUI.
but i cant seem to get my head around it as i only discovered text mesh pro about 10 minutes ago