Hi, while I'm typing in the InputField, I tried to detect keydown events using Input.anyKeyDown so that after a key is typed into the input field, the string is saved through playerprefs. It works in the editor but isn't working when I build to WebGL. Am I correct in assuming it is because of how WebGLInput works that it blocks some of the keyboard input while a InputField is being typed into?
How I'm doing it is something like this:
void Update(){
if (Input.anyKeyDown){
// my code for saving data
}
}
If yes, is there another way I can allow my unity code to detect when a player has typed into the input field? Thank you :D
Hi, while I'm typing in the InputField, I tried to detect keydown events using Input.anyKeyDown so that after a key is typed into the input field, the string is saved through playerprefs. It works in the editor but isn't working when I build to WebGL. Am I correct in assuming it is because of how WebGLInput works that it blocks some of the keyboard input while a InputField is being typed into?
How I'm doing it is something like this:
If yes, is there another way I can allow my unity code to detect when a player has typed into the input field? Thank you :D