playMaker

Author Topic: Change Font In GUI Button?  (Read 3822 times)

ConnersCraft

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Change Font In GUI Button?
« on: July 27, 2013, 08:42:58 AM »
Is it possible to change the font size in a basic GUI Button? I could always just make my own button, but I have no problems with the basic ones included. I feel really dumb like I am missing something obvious, but all help is much appreciated. Thanks.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3637
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Change Font In GUI Button?
« Reply #1 on: July 27, 2013, 05:59:22 PM »
You have to make a custom GUISkin then use the SetGUISkin action to activate it.
Then use the Style parameter in the GUI Button action to use the named style for the button.

GUISkins are made in the Unity editor. Take a look at the Unity reference here:
http://docs.unity3d.com/Documentation/Components/class-GUISkin.html

Also search this forum for GUISkin and GUIStyle.