About GUI Text

Hey all:
I am a new one for using Unity, and this is my first post here, hope someone could help me, I am appreciate about that.
I write a code in C# to get text from PHP. using “collider” to pop up the text, which I grab from database. The problem is, I only can see the text by using “Console.WriteLine” in console, but the GUIText that I attach on object doesn’t work. I don’t know what is the problem there, could some one help me?
Thanks, all.

First off, welcome to Unity and to the forums! :smile:

Second, can you share a bit of your code with us? It’s hard to debug or help out when we’re not sure what code you’re using. This shouldn’t be a big pile of code as it’s easy enough to use the WWW class, pull some string data and show it, so drop it in a reply post and we’ll help out from there.

Hi, Celine.

Something springs to mind here. The location of the GUIText object in 3D space determines where the text appears onscreen. Basically, the X and Y coordinates of the object’s transform are the horizontal and vertical positions (0 is left/bottom, 1 is top/right). Try positioning your GUIText object (set up with some test text) at <0.5, 0.5, 0> and see if it becomes visible.

Hey.Thanks guys. I have changed the way to GUI.Label,and it works now. I am thinking to define the style of this label, and haven’t finished yet. I think I need to read more materials about GUI as well. Thank you for giving me a explanation.