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… }