Sets the maximum number of text characters 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.

Signature:

EditBox:SetMaxLetters(maxLetters)

Arguments:

  • maxLetters - Maximum number of text characters allowed in the edit box, or 0 for no limit (number)