I can't find the GUIText button

In one of the tutorials, it is telling me to get a GUIText from the gameobject dropdown or from the hierarchy dropdown menu. The only thing close to text is under Game Object>UI>Text. Where is the button to add GUIText? Thanks!

I don’t believe the newer version of Unity has that anymore (It can still be done coding wise) but I don’t believe it’s on the Editor it’s self. (I couldn’t find it either). So I just learn the new UI system lol.

It seems like the direction is to use GUI only for editor stuff, and UI for runtime. There’s not much reason to use GUI Text objects if thats the case.

Ok thanks, so this means if I want a GUI integer or text then I would have to do it in code?

BTW, the project I’m trying to do is this → http://unity3d.com/learn/tutorials/projects/roll-a-ball and I am on section 106. Displaying Text

Exactly, you’d have to do it by code.

Such as

void OnGUI(){

GUILayout.Label (“I am a label, can you see me?”);

}

(I only know java script and lua so this is new to me) THANKYOU!!!

It’s under top menu Component > Rendering in latest versions which means you need to have existing object selected to add it.

BTW there are own forum sections for learning material and/or UI questions :slight_smile:

instead of void put function lol.

That’s nice to know! Thanks for the info!

1 Like

Oh thanks man!!! This is soo helpful, WOOHOO

How do I get it to be a child of a parent game obj?

http://unity3d.com/learn/tutorials/modules/beginner/editor/the-hierarchy-and-parent-child-relationships

But, this method acts as putting the GUIText as a component to a gameobject, I want the GUIText to be a full fledged gameobject itself, not a gameobject component

GUIText is always a component on a GameObject. Even when it was in the GameObject menu, all that the menu option would do is create a GameObject with the GUIText component attached.

Is there a tutorial on how to do this tutorial (http://unity3d.com/learn/tutorials/projects/roll-a-ball/displaying-text) using either the UI > Text method, or the AddComponent > GUIText method?