Input System not working on other pc/laptop (Project shared via Unity Cloud version control)

My game perfectly functions on my pc. I used the “new” Input System to make all the possible player inputs (moving, looking, jumping, etc.). With Unity Cloud version control, I added my friend to the organization to access the project. He downloaded and opened it with the same Unity Editor that I use.

The game itself worked, but everything related to inputs did not. He couldn’t control the character at all. How could this happen?

  • The input system package is installed on his laptop.
  • Just like everything else, the Player Input component is attached to the Player, and the right Input Action Asset is selected.
  • The Input Action Asset is the same on his laptop as in my computer.
  • I don’t use .Enable() and .Disable() function in my script for the Input Action Asset.
  • He’s using a mouse to look around and the laptop’s keyboard to move the player, just as I intended.

Here’s an example on how I use the Input Actions in the script that is attached to the player:

1: private InputAction lookAction;
2: start { playerInput = GetComponent(); lookAction = playerInput.actions[“Look”]; }
3: update { Look(); }
4: Look { Vector2 lookRead = lookAction.ReadValue(); etc… }

That’s easy… bugs!

As always, your job is to find what is wrong on the computer where it doesn’t work.

Until you find out what is wrong, you won’t be able to fix it.

And that means… time to start debugging!

By debugging you can find out exactly what your program is doing so you can fix it.

Use the above techniques to get the information you need in order to reason about what the problem is.

You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.

Once you understand what the problem is, you may begin to reason about a solution to the problem.