Hello.
I have an issue with my sprites. I’m trying to draw some text over a sprite using a GUI.Label present in the sprite’s script.
However, when I try to draw it:
GUI.Label(new Rect(transform.position.x + 1,transform.position.y + 1, 400, 40), “etcetc”);
The text is drawn in the top left, at the position 1,1 which means the transform.position is null.
What exactly do I have to use to get the exact 2D positioning of a sprite on screen?