public void setOnEndEdit(OnInputField action) { mAction = action; mInputField.onEndEdit.AddListener(OnEndEdit); }
public void setOnEditEnd(OnInputField action) { mEditEndCallback = action; mInputField.onEndEdit.AddListener(onEditEnd); }
public void setOnEditting(OnInputField action) { mEdittingCallback = action; mInputField.onValueChanged.AddListener(onEditting); }
// needEnter表示是否需要按下回车键才会认为是输入结束,false则是只要输入框失去焦点就认为输入结束 public void setOnEditEnd(OnInputField action, bool needEnter = true) { mEditEndCallback = action; mEndNeedEnter = needEnter; mInputField.onEndEdit.AddListener(mThisEditEnd); }