I have empty game object. I added Component GUIText to this object. Object is initialized in the C# code on Start(). On Update() I want to set some text. But this text doesn't appear. DO I need to do something with this component, maybe add some additional component? Thanks Code example: Code (CSharp): private GUIText score; void Start() { score = GameObject.Find("scoreText").guiText; } void Update() { score.text = "Hello!"; }
It needs to be positioned correctly in viewport space, but overall you'd be better off forgetting about it and using the UI system in Unity 4.6 instead. --Eric
Thanks for this info. Actually I was trying to use component Text firstly. But looks like the problem is really in positioning. Because text doesn't appear even if I put some text in Component's property. The width and height of gameobject with Component text is 100x100, font size 14. I don't know what is wrong. Can You suggest please on what I need to pay my attention? Thanks