is there any way to block Backspace key in text field.Player should not be able to use back space key inside the text field is there way to block it.
You can try this code-
void OnGUI()
{
if( Event.current.keyCode == KeyCode.Backspace && ( Event.current.type == EventType.KeyUp || Event.current.type == EventType.KeyDown ) )
{
Event.current.Use();
}
------ your code --------
}