Input System with WebGL

Hi there,

I am working on a team project for school and integrated unity’s new input system into it and then uploaded it with WebGL.

I received the following errors when launching the site:

InvalidOperationException while resolving binding ‘Move:1DAxis’ in action map ‘GameInput (UnityEngine.InputSystem.InputActionAsset):Gameplay’
_JS_Log_Dump @ docs.framework.js:2

and

InvalidOperationException: No binding composite with name ‘1DAxis’ has been registered
at UnityEngine.InputSystem.InputBindingResolver.InstantiateBindingComposite (System.String nameAndParameters) [0x00000] in <00000000000000000000000000000000>:0

I am using an auto-generated GameInput and an InputReader class as seen attached in the .zip

This is in Unity 2020.3.19f1

I am wondering if anyone could possibly get me any leads on how to resolve this issue with WebGL and the Input System.

7556056–934348–Input.zip (2.3 KB)

Can you check what is your managed stripping level in player settings?
I’m currently fixing a bug where mid/high levels where causing random classes be stripped during the build, changing setting to low should work around it until the proper fix lands (hopefully in 1.1.2)

It is set to Low.

Does it work in non-webgl player like windows player for example?

No, recent testing has revealed it does not. It seems to be the same/similar error as the other thread: https://discussions.unity.com/t/822836