Hi,
Unity Version: 5.4.2f2
Build Type: WebGL
My webgl Unity application is blocking all keyboard input which is required for other HTML inputs.
I have looked at the similar posts but below line doesn’t seem to help:
#if !UNITY_EDITOR && UNITY_WEBGL
WebGLInput.captureAllKeyboardInput = false;
#endif
I have read the below material. Still not working due to either posters using older versions or just generally broken.
Any advice is greatly appreciated.
Alex
- Unity - Manual: Input in WebGL
- https://forum.unity3d.com/threads/input-field-in-webpage-not-working-with-unity-webgl-in-page.316016/
- Unity WebGL - Prevent From eating up all Mouse / Keyboard Input? (HTML Input Fields) - Questions & Answers - Unity Discussions
- https://forum.unity3d.com/threads/how-to-get-rid-of-unity-canvas-collecting-all-keyboard-input.431060/
- https://forum.unity3d.com/threads/webgl-on-kongregate.318417/
- https://forum.unity3d.com/threads/webgl-not-receving-keyboard-input-in-some-browsers.294598/
- https://forum.unity3d.com/threads/disable-enable-keyboard-in-runtime-webgl.286557/
- WebGL - Module.doNotCaptureKeyboard: true or Module.keyboardListeningElement: ... NOT WORKING ANYMORE - Questions & Answers - Unity Discussions
- WebGL Canvas/Keyboard focus - Questions & Answers - Unity Discussions
- unity game engine - Catching Input Events in WebGL build - Stack Overflow