How to make a GUI text appear at an objects position.

Hi guys!

Im trying to make something like a space sim, but i have problem here. Since everything is pretty far away from each other and not visible in the distance, how can i make a gui text appear at an objects position? I’ve searched a lot trough the forums here, but everything i found didn’t work at all… So i have nothing for now. Any ideas?

Use this:

Camera.main.WorldToScreenPoint(target.transform.position);

…to convert a Vector3 point from World to Screen coordinates :wink: