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