GUIText

I added a GUIText component to an object to draw some text on the GUI but it’s not drawing…
I set a font, there’s a GUILayer on camera object, but nothing is being drawn… what am I missing?

Thanks

About 10 years of upgrades to the engine. GUIText and GUITexture date back to Unity 1.0 and have been obsolete since at least Unity 2.0. I don’t know what, specifically, is going wrong, I just know you’re wasting your time trying to work with that system. Use the Unity UI (Canvas-based) instead.

Do you mean the Component UI>Text? I’m new to unity so I pretty noob about this stuff. could you help me out? I just need to draw a string to the interface. I’m on a 3D world

Thanks, I managed to draw some text, right-clicked the scene and created a text object, it created a Canvas, and a text object, I set the object in the top-left corner of the canvas, but the text isn’t fixed at that position… If i’m playing in a low sized window the text is in the correct position but when I play on a big window(fullscreen windowed) it is a bit moved to the center of the window. How to fix this?

On the text element, change the RectTransform’s anchoring properties. You can do this by the numbers in the inspector, by clicking the little square graphic above “anchors”, or by fiddling with the pointy corner arrows in the scene view.