Make Gui Text bigger.

Is there a way to make my letters bigger ingame? This is the code: (the 40,40 don't work if I change them) void OnGUI() {

GUI.Label(new rect( 10, 30, 40, 40), shotsFired.ToString() );


This post has a pretty good answer to this question.

Yeah. Navigate to the font you are using. Change it to the value you want, which increases/decreases the size. That's it - hope I helped!

EDIT: You can't modify the Unity standard font - it's a special skin for Unity - you can only modify imported fonts.

Ok - try this:

var shotCounterStyle : GUIStyle;

function OnGUI() {
    GUI.Label(Rect(10,10,100,30), "5 Shots Fired!", shotCounterStyle);

Attach this script to your main Camera. After you've done that, click on the Main Camera in Hierarchy and in the inspector you'll see the whatever(Script). Click on the "Shot Counter Style" arrow that appears and under font choose a font that you've imported into the project.

If you want to change the font attributes, click on the font in the Project window and change the size, etc.