Cannot find WebGLInput.captureAllKeyboardInput

My version is 5.4.3f, I can’t find the class in UnityEngine’s reference. How can i set the bool to false?

actually the main question is Chinese input method doesnt work in Webgl.

WebGLInput class only can reference in WebGL build.
sample

#if !UNITY_EDITOR && UNITY_WEBGL
        UnityEngine.WebGLInput.captureAllKeyboardInput = false; // or true
#endif

or you can try this plugins
https://github.com/unity3d-jp/WebGLNativeInputField

1 Like