Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: createasaurus on November 20, 2017, 03:57:49 PM

Title: [Solved] Need help setting up basic text input - font and font color?
Post by: createasaurus on November 20, 2017, 03:57:49 PM
I've been using Playmaker for a while, but this is the first time I'm attempting typed input.

How do I adjust the font?  And font color?  I have never used GUI layout before... I'm fiddling around but I can't get this to work.

I'm experimenting off the example from this link:
http://hutonggames.com/playmakerforum/index.php?topic=4284.0

Thank you!!

Title: Re: Need help setting up basic text input - font and font color?
Post by: djaydino on November 20, 2017, 05:58:31 PM
Hi,
I think this is the old gui, maybe its better to look into uGui
It has input fields buttons sliders and more.
(in the hierarchy, right click and select Ui to see and select them)

You can find the uGui actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
seacrh for "ugui proxy full"


I also made a new action called 'U Gui Text Set Font' if you need to set a font @ runtime

And to set the color @ runtime you can use 'U Gui Graphic Set Color'

To get the text from an inputfield you can use 'U Gui Input Field Get Text'
Title: Re: Need help setting up basic text input - font and font color?
Post by: createasaurus on November 20, 2017, 09:35:55 PM
Cool!  Thank you for pointing me to uGUI!!  I got it from the Ecosystem and I'm now trying to learn how to use it by reading the Unity documentation.  I'm excited to use your 'U Gui Text Set Font' too.  Thank you!!   ;D
Title: Re: [Solved] Need help setting up basic text input - font and font color?
Post by: djaydino on November 21, 2017, 11:14:34 AM
Hi,
Happy to help, you can find many tutorials on youtube for ugui, and many are useful even they are not used with Playmaker (like scrolling/dropdown/positioning/many more..)