I'm trying to add a scoring method in my Unity phone game by changing the UI text. Here is My code:
using UnityEngine;
using UnityEngine.UI;
public class ScoreDisplay : MonoBehaviour
{
// Start is called before the first frame update
[SerializeField]private Text m_MyText;
void Start()
{
m_MyText.text = "This is my text";
}
// Update is called once per frame
void Update()
{
m_MyText.text = "UWU";
}
}
Nothing pops up when I search for a text object:

And I cannot drag the mesh text into the public variable. Any help would be appreciated, thank you.
TextMeshProUGUIinstead ofText.