- Home /
Question by
Desination-X · Apr 26, 2014 at 12:07 PM ·
c#characterlimittextbox
How do I set a maximum character limit to my textbox C#?
I have a textbox where users are promted to input a desired username, but they are able to set an unlimited amount of characters, which I only want to allow 18. How can I do this within C#?
Comment
Answer by Scribe · Apr 26, 2014 at 12:24 PM
Please read the script reference: http://docs.unity3d.com/Documentation/ScriptReference/GUI.TextField.html
The second constructor for textfield has builtin what you want.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
[Please Help!] How Can I Make The Tip Of My Ship Follow My Cursor? 0 Answers
Headbobber script in C#? 3 Answers
My character jumps infinitely, even when in mid-air 1 Answer