Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: choi on July 03, 2012, 10:13:35 PM

Title: [SOLVED] How do I change the font style PlayMaker GUI text?
Post by: choi on July 03, 2012, 10:13:35 PM
I can not change the font style.
How do I change the font style PlayMaker GUI text?
 ???
Title: Re: How do I change the font style PlayMaker GUI text?
Post by: jeanfabre on July 04, 2012, 03:02:19 AM
Hi,

check this link from the unity help:

http://docs.unity3d.com/Documentation/Components/class-Font.html (http://docs.unity3d.com/Documentation/Components/class-Font.html)

bye,

 Jean
Title: Re: How do I change the font style PlayMaker GUI text?
Post by: Jernau on July 04, 2012, 03:14:23 AM
Once you have a custom font configured you'll need to assign it to your GUI components (Buttons, Labels, Boxes, etc.). I do this using GUI Skin (http://docs.unity3d.com/Documentation/Components/class-GUISkin.html).

When you have a GUI Skin configured according to the linked instructions, you'll need to add a Set GUI Skin (https://hutonggames.fogbugz.com/default.asp?W337) Action in an initialization FSM (and point it to your GUI Skin). Then in your GUI Label (or Button, or Box) action you just need to set the Style variable to match the name of the Style from your GUI Skin (usually "Button" for Buttons and "Label" for Labels, etc.)
Title: Re: How do I change the font style PlayMaker GUI text?
Post by: choi on July 04, 2012, 03:33:24 AM
Once you have a custom font configured you'll need to assign it to your GUI components (Buttons, Labels, Boxes, etc.). I do this using GUI Skin (http://docs.unity3d.com/Documentation/Components/class-GUISkin.html).

When you have a GUI Skin configured according to the linked instructions, you'll need to add a Set GUI Skin (https://hutonggames.fogbugz.com/default.asp?W337) Action in an initialization FSM (and point it to your GUI Skin). Then in your GUI Label (or Button, or Box) action you just need to set the Style variable to match the name of the Style from your GUI Skin (usually "Button" for Buttons and "Label" for Labels, etc.)

Thanks for your help.