Use code tags when posting code Using code tags properly
It will help keep the code from going off the screen.
For your question you should instantiate the TextPrefab and then change it’s text right after.
As far as figuring out where it is, you can double click the cloned object in the hierarchy to see where it is appearing. If it’s invisible, remember that UI components must be under a canvas.
Canvas
-Text
-Image
-Inputfield
or else they will not be visible. Depending on the canvas you use will determine some other factors, but you can’t just have a stray Text object without a canvas parent.