Run when the edit box's text is changed. This script is run both when text is typed in the edit box (for each character entered) and when the edit box's contents are changed via :SetText() (but only if the text is actually changed).

Signature:

OnTextChanged(self, userInput)

Arguments:

  • self - Reference to the widget for which the script was run (editbox)
  • userInput - True if the text changed due to user input; false if the text was changed via :SetText() (boolean)