Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

in UGUI,how to change the font size of the text of a button.

Discussion in 'General Discussion' started by onunix, Feb 22, 2015.

  1. onunix

    onunix

    Joined:
    Feb 20, 2015
    Posts:
    5
    how to set the font size,for example:
    if (GUI.Button (newRect (0, 0, 100, 100), "Del")) , how to change the font size of the "Del" .
    thanks.
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Please ask the question in the correct section:
    http://forum.unity3d.com/forums/extensions-ongui.25/

    To avoid further confusion, you are not using uGUI, but OnGUI. uGUI is the old name of the Unity's new GUI which is officially named Unity UI.