Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: MABManZ on August 20, 2013, 04:58:36 PM

Title: Keyboard Build String Action
Post by: MABManZ on August 20, 2013, 04:58:36 PM
I've been building a custom GUI using Playmaker FSMs and 3D Objects (planes and 3D Text in front of camera).

I'm trying to make a field where the user can type a name (set a string value) using keyboard input, but I'm not seeing any way to do this. The GUILayout Textfield does not match my other UI elements and is tricky to work with to position it to multiple resolutions.

I found the iOS/Android Keyboard action (http://hutonggames.com/playmakerforum/index.php?topic=2316.0), but I would like something similar for a normal desktop keyboard, where it will begin receiving input and build a string.
Title: Re: Keyboard Build String Action
Post by: jeanfabre on August 24, 2013, 07:59:37 AM
Hi,

 You can listen to keyboard inputs using this custom action:

http://hutonggames.com/playmakerforum/index.php?topic=487.msg1882#msg1882

 Bye,

Jean
Title: Re: Keyboard Build String Action
Post by: MABManZ on August 25, 2013, 12:04:57 AM
Thanks, I tried using this action and it appears to not be storing the string variable correctly...the string will reset to a null value immediately (despite moving to a new event that should not change the value) , and seems to only store the string if you hold the button and it will sometimes appear for a split moment (looking at the inspector)

Unfortunately this isn't a very useful action with this problem.
Title: Re: Keyboard Build String Action
Post by: jeanfabre on August 26, 2013, 10:01:43 AM
Hi,
 
It's likely your logic that reset the variable. The action in itself doesn't reset it, it only set it, and then fire an event. I would double check on a simple Fsm to validate that action first and then move it into your more complex logic.

 Bye,

Jean
Title: Re: Keyboard Build String Action
Post by: MABManZ on August 26, 2013, 01:10:47 PM
I've tried it literally with nothing else in the FSM, it's just an a state than runs the event and then goes to finished into an empty state (state 2). It never stores a variable, not sure what I could be doing wrong :(
Title: Re: Keyboard Build String Action
Post by: jeanfabre on September 09, 2013, 05:30:02 AM
Hi,

 Just tried and it works. Are you on Mac or windows? are you using the latest playmaker from the asset store?

bye,

 Jean