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[]) : StringI'd suggest you use the following method signature:
static function TextField (text : String, maxLength : int, style : GUIStyle, params options : GUILayoutOption[]) : StringSo, 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.htmlpps. This is using Unity 3.5 and PM 1.3.3