Sets the maximum number of bytes of text allowed in the edit box.
Sets the maximum number of bytes of text allowed in the edit box. Attempts to type more than this number into the edit box will produce no results; programmatically inserting text or setting the edit box's text will truncate input to the maximum length.
Note: Unicode characters may consist of more than one byte each, so the behavior of a byte limit may differ from that of a character limit in practical use.
Signature:
Code
EditBox:SetMaxBytes(maxBytes)
Arguments:
maxBytes - Maximum number of text bytes allowed in the edit box, or 0 for no limit (number)