How to reference TextMesh from script?

Hello guys,

I am stuck in the situation where I want to create a variable to find a TextMesh in the scene but I don’t find anyway to do it, like for example when you want to find a GameObject you write:

var joe = GameObject.Find(“joe”);

so I don’t have to use the inspector directly to create the TextMesh.

Could someone help me with this?

Thanks in advance,

Regards,
Carlos

Are you wanting to find an existing object? Or create a new one?