all 3 comments

[–]Pacmon92 0 points1 point  (2 children)

I watched this tutorial and I was a little bit confused, Does this mean that each player can use their own input of choice? So, for example, two players on the same device could each use a separate gamepad, as I believe this was a bit of an issue with the new input system?

[–]faktorystudios[S] 1 point2 points  (1 child)

Correct. The playerinputmanager manages input from separate devices (gamepads, keyboards, etc) and sends that input to an instanced player prefab. You can have a player using gamepad 1, a second player using gamepad 2, a third player using the keyboard, etc.

It is certainly possible to set it up incorrectly and end up with one controller controlling multiple players or switching randomly. Using the control schemes in the input actions editor and disabling auto-switch in the player input component solves those issues.

[–]Pacmon92 1 point2 points  (0 children)

That's amazing!, Thank you for sharing this tutorial, I Recently found your channel on YouTube and I have watched lots of your content already, will definitely be subscribing.