This version of Unity is unsupported.

InputField.OnValidateInput

Declaration

public delegate char OnValidateInput(string text, int charIndex, char addedChar);

Description

Custom validation callback.

When assigned validation of each character will be passed to the callback.