Below code use to implement the backspace button functionality which runs under a GUI button OnClick.
public void BackSpace(InputField userField) {
string textEnter = userField.text;
string tempString = textEnter.Substring(0, textEnter.Length - 1);
userField.text = tempString;
}
It working fine and remove input text one at a time single button click. The problem is that I want to run this functions continuously as user press continuously the GUI button Just like your keyboard backspace button but sadly this is working only once as onClick work only once. Is there any event or trick available to detect continuous touch on GUI in order to run my desired code?