CPMStar Ad

Naughty Who @ indiedb
Showing posts with label ui. Show all posts
Showing posts with label ui. Show all posts

Friday, March 28, 2014

Tuesday, February 18, 2014

[unity] Text and Fonts #gamedev


Unity has more then enough ways of text output.
The easiest is – GUIText. The simplest way is to create it directly in the editor (GameObject -> Create Other -> GUI Text), then attach a script for the guiText field to it, which will allow to change the parameters of position, style etc. There is an even easier way – choose the GUI.Label(rect,string) in the OnGUI() function.I won’t put an emphasis on coding and I want to mention the next key moments: