Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: Jos Yule on May 11, 2012, 02:47:50 PM

Title: [FIXED] GUILayout Text Field ignoring Max Length
Post by: Jos Yule on May 11, 2012, 02:47:50 PM
Looking at the GUILayoutTextField.cs, it seems you are using the following method signature to call GUILayout.TextField() :


static function TextField (text : String, style : GUIStyle, params options : GUILayoutOption[]) : String

I'd suggest you use the following method signature:

static function TextField (text : String, maxLength : int, style : GUIStyle, params options : GUILayoutOption[]) : String

So, you can send the default maxLength value here, or actually use the value the user has selected.

ps. here is the link to the Unity docs about GUILayout.TextField() - http://unity3d.com/support/documentation/ScriptReference/GUILayout.TextField.html (http://unity3d.com/support/documentation/ScriptReference/GUILayout.TextField.html)

pps. This is using Unity 3.5 and PM 1.3.3
Title: Re: GUILayout Text Field ignoring Max Length
Post by: Alex Chouls on May 11, 2012, 05:24:07 PM
Thanks! It's fixed for the next update...