Search Unity

Question can't find the solution to adding text mesh pro text in inspector

Discussion in 'UGUI & TextMesh Pro' started by manta0101, Jan 14, 2023.

  1. manta0101

    manta0101

    Joined:
    Dec 28, 2022
    Posts:
    3
    So i am following the unity learn Create with Code and in the TextMeshPro section it says to assign the Text Mesh Pro text in the inspector. When attempting it does not allow me to (see screen captures for details).
    Im on Version 2021.3.
    upload_2023-1-14_9-56-18.png
    I have included the include tmPro statement and have assigned a textmesh pro object in the C code at the enter of the class called scoreText and tried both Public and serialized to make it available

    and when i try and put the text into game manger in the inspector, this occurs. I see the warning about" ... edit mode" but not sure what that means since i am editing and not playing with the play button. is there a setting i am missing that is preventing this?

    upload_2023-1-14_9-59-15.png
    in creating the object i used the right click and picked Text - TextMeshPro, which created the above object inside of the canvas object. (I did not rename it in capturing screenshots.
    upload_2023-1-14_10-0-50.png

    what am i doing wrong? can someone help me?
     

    Attached Files:

  2. manta0101

    manta0101

    Joined:
    Dec 28, 2022
    Posts:
    3
    missed this screencap in the post above
    upload_2023-1-14_10-19-6.png
     
  3. manta0101

    manta0101

    Joined:
    Dec 28, 2022
    Posts:
    3