# Print on the GUI in Unity

I'm trying to show the players name on the GUI with a label.

GUI.Label(new Rect(10,10, 100, 30), playerName);


Instead of use the default style I want to use a different font with larger character.

Any suggestion to achieve this?

Use GUI Skins. Create a new skin (go to Assets -> Create -> GUI skin), customize it accordingly (you have options for each kind of control), and link it to your script.

public class YourScript : MonoBehaviour
{
public GUISkin Skin;
...

public void OnGUI()
{
GUI.skin = Skin;
GUI.Label(new Rect(10,10, 100, 30), playerName);
}
}


More on GUI Skins in the official documentation here.

• Also note that you can edit GUI skins in Play mode! You will see your changes in the game and they will be there when you exit Play mode. Apr 11 '14 at 15:42
GUIStyle myStyle;

void Start ()
{
myStyle = new GUIStyle();