Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Third Party The new InputSystem may not work well with Photon Fusion's webGL

Discussion in 'Multiplayer' started by chnagao, Jun 30, 2023.

  1. chnagao


    May 11, 2021
    I am using share mode with Photon Fusion.
    I was able to use it without problems in Editor,
    Input from webGL may not be received by the new InputSystem.

    ※I already set up UpdateMode for InputSystem at Project Setting.

    First, launch one shared client with webGL. This successfully acquired Input.
    Next, start another shared client at same PC.
    Then, the value of InputMap could not be obtained in the first place, and it did not work at all.

    One browser (client) works fine, the other doesn't. Is this some kind of InputSystem value fetching limitation?

    • Assign Inputs and Check Values
    Code (CSharp):
    2.                 InputSystem.Update()
    3.                 playerInput = GetComponent<PlayerInput>();
    4.                 moveAction = playerInput.currentActionMap.FindAction("Move");
    5.                 Debug.Log("Spawned moveAction" + moveAction);
    6.                 jumpAction = playerInput.currentActionMap.FindAction("Jump");

    • First Client's Log
    Code (CSharp):
    1. moveActionPlayer/Move[/Keyboard/w,/Keyboard/upArrow,/Keyboard/s,/Keyboard/downArrow,/Keyboard/a,/Keyboard/leftArrow,/Keyboard/d,/Keyboard/rightArrow]
    • Second Client's Log
    Code (CSharp):
    1. moveActionPlayer/Move