Search Unity

[Javascript] Button Text Help

Discussion in 'Immediate Mode GUI (IMGUI)' started by brandon199511, Feb 11, 2012.

  1. brandon199511

    brandon199511

    Joined:
    Sep 21, 2010
    Posts:
    268
    Is there a way to make a line-break, and change the font size inside of a button?

    Thanks!

    Edit: Use this inside your text \n

    "Tacos\nAre\nGood"
     
    Last edited: Feb 12, 2012
  2. UnityCoder

    UnityCoder

    Joined:
    Dec 8, 2011
    Posts:
    534
    Ofcourse u can use \n as line break, u can also change font size, font style by using guistyle