So I am a beginner at unity and am slowly making a game but, I ran into this problem and I can't seem to figure out how to solve it. You see I have several text Mesh Pro UGUI objects within a canvas which is within a scene and I am trying to get a public script to edit the text (essentially filling the text boxes with info) The problem is that I can't seem to drag the text boxes out of the scene directly into the display and when I try making a prefab in assets the text dosen't change and when I try to give the canvas the script it no longer seems to get the global variables that I need. So how can I drag text objects from a scene into a public script so that the script can edit the assets without any issues?
Like I said before I have tried a few thing already and yes I am using Text Mesh Pro - Text (UI) with Text Mesh Pro UGUI so the typing should match. I just can't seem to take them from the scene into the public script.
Here is what my workspace looks like Here is what I am Trying to do

If you want to make a reference for the TextMeshPro UI object, you need to make the reference in the script:
After that you should be able to see the reference in the inspector.