- Home /
Question by
unityfan4ever · Mar 22, 2014 at 01:48 PM ·
textscreenguitextdisplay
what is the correct way to display text on screen
Hi Im new to Unity and still learning, and I dont understand the guiText functionality. Why I can only add 1 guiText component? Im trying to create a flappy-bird like game. All the information is found in one specific script (the instance of the object) , and I want to display information in several places on the screen, but guiText is positioned in one place on the screen, and you can only create one guiText. What should I do?
Thanks
Comment
Best Answer
Answer by zwoxy · Mar 22, 2014 at 01:56 PM
instead of having guiText components, you should probably make a gui script instead. in the script you add a OnGUI method and in it, you can make how many texts you want with GUI.Label.