Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Input System with WebGL

Discussion in 'Input System' started by crazyjackel, Oct 8, 2021.

  1. crazyjackel

    crazyjackel

    Joined:
    Oct 10, 2018
    Posts:
    18
    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.
     

    Attached Files:

  2. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    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)
     
  3. crazyjackel

    crazyjackel

    Joined:
    Oct 10, 2018
    Posts:
    18
    It is set to Low.
     
  4. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    Does it work in non-webgl player like windows player for example?
     
  5. crazyjackel

    crazyjackel

    Joined:
    Oct 10, 2018
    Posts:
    18