Suggestion:
Recalculate and apply Input rect on WebGLWindowPlugin.WebGLWindowOnResize()
Can be achieved by calling DeactivateInputField WebGLWindowPlugin.WebGLWindowOnResize.
private void Awake()
{
input = Setup();
#if !(UNITY_WEBGL && !UNITY_EDITOR)
// WebGL 以外、更新メソッドは動作しないようにします
enabled = false;
#endif
// for mobile platform
if (Application.isMobilePlatform)
{
if (input.EnableMobileSupport)
{
gameObject.AddComponent<WebGLInputMobile>();
}
else
{
// when disable mobile input. disable self!
enabled = false;
}
}
WebGLWindow.OnResizeEvent += DeactivateInputField;
OnKeyboardDown += KeyboardDownHandler;
}
Suggestion:
Recalculate and apply Input rect on WebGLWindowPlugin.WebGLWindowOnResize()
Can be achieved by calling DeactivateInputField WebGLWindowPlugin.WebGLWindowOnResize.