GUI Text - Just can't fathom

I cannot get the GUI text to show correctly in the game camera. I DO have spome text showing but when the screen in minimalised the text goes off screen. I have watched ALL the tutorials but they just don’t help me. If I create a new scene I can get things working but in my current scene it seems that things are bust. I have TexyGUI componants and gameObjects all over the place now. Some are children some parent. Some are within a ‘Canvas’ some not. Some are attached to the camera, some not. Some have TextGUI, TextScript, RectTransform, some have neither, both and all. Every combination yealds no resulting text to the screen. And when some text does make it to the screen it will get cropped off when the game players in small windows.

can anyone offer any help here?

thanks

What I do is:

  1. Create a new, empty GameObject
  2. Position it at (0.5, 0.5, 1.0)
  3. Add the GUIText component
  4. Set the Anchor to be Middle-Centre
  5. Set Alignment to be Centre
  6. Enter some text.

Then, when you press Play, you’ll get your text in the middle of the screen. The camera can move about, but the text shouldn’t. The GUIText component is a 3d one, but it’s treated like a 2d one. (0.5, 0.5, 1.0) is treated as the middle of the screen.

Next, assuming you want the text to be somewhere specific on the screen, use Pixel Offset to move the GUIText around. You’ll know the size of the screen where your game is running.

Graham, thank you for that reply. That 6 point check list has really helped me. I followed the 6 points and got the text positioned exactly where I want. Thank you again.

Having said that, I found that something else I was going wrong was viewing the scenes in ‘free aspect’ which will, of course, show text which are positioned at the edge in big view while cropping them off in reduced window sizes AND when the game is seen/played in the web player. I’ve now set my aspect ratio to ‘web’ and thus get a uniform window size in editor AND when the game is uploaded to WebPlayer.

thank you again sir.