Search Unity

Question What is the type of variable that stores text in TextMeshPro?

Discussion in 'UGUI & TextMesh Pro' started by Szabelka, Apr 22, 2023.

  1. Szabelka

    Szabelka

    Joined:
    Apr 22, 2023
    Posts:
    5
    So I wanted to create a variable that would store the text from TextMeshPro, but "public Text" doesn't let me connect these two. What am I doing wrong?
     
  2. Szabelka

    Szabelka

    Joined:
    Apr 22, 2023
    Posts:
    5
    Also, the code
     

    Attached Files: