/// <summary> /// Clear the text input field. /// </summary> public void Clear() { ResetKeyboardState(); if (InputField.caretPosition != 0) { InputField.MoveTextStart(false); } InputField.text = ""; m_CaretPosition = InputField.caretPosition; }
/// <summary> /// Move caret to end. /// </summary> public void MoveToEnd() { inputField.MoveTextStart(false); inputField.MoveTextEnd(false); }