Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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:
    4
    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:
    4
    Also, the code
     

    Attached Files: