- Home /
Question by
worldofcars · Feb 14, 2012 at 03:44 PM ·
textfieldnumber
Maximum number of letters in textfield
Hello. How can I set a maximum of numbers of letters that you can write in a Textfield. For example the player should not be able to write more than 100 letters in textfield. How can I do this?
Comment
Best Answer
Answer by BarkShark · Feb 14, 2012 at 03:46 PM
http://unity3d.com/support/documentation/ScriptReference/GUI.TextField.html, here you can find information about textfield. Also about the maximum lenght
In addition (not that you need to know that), The Textfield or Textarea has a technical byte limit of 64k (65536). $$anonymous$$eep in $$anonymous$$d that new-line-characters, spaces, special characters (multibyte char) are also characters.