Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 1982 on December 05, 2013, 06:16:03 AM

Title: How to input text / numbers?
Post by: 1982 on December 05, 2013, 06:16:03 AM
Okay I must be complete noob for not figuring this out... But how do you allow player to type text or numbers and save it to a PM variable?

Title: Re: How to input text / numbers?
Post by: uberwolfe on December 05, 2013, 06:47:35 AM
GUILayout Text Field, and GUILayout Int/Float Field for numbers.

 ;)
Title: Re: How to input text / numbers?
Post by: 1982 on December 05, 2013, 06:55:15 AM
Yes that seems to work, but is there any way of getting rid of the GUI element because I would like to use only text mesh?

Also seems like you have to click the field to activate it  :-\
Title: Re: How to input text / numbers?
Post by: uberwolfe on December 05, 2013, 05:29:52 PM
I haven't really played around with Unity's GUI all that much, but I believe just about every aspect of the GUI element is customisable using GUI skins etc.

Might be worth looking into.. sorry I can't offer much more than that
Title: Re: How to input text / numbers?
Post by: 1982 on December 05, 2013, 05:32:41 PM
Yes, I am also noob with Unity own GUI system. I went directly to text mesh :D Maybe the answer is there, I hope..