- Home /
How to create and set different Player ID's to individual controllers?
Hi, im trying to create a game that uses 4 Xbox 360 controllers in order to control each character. Its a local game where all characters are playing on the same screen. I have made separate inputs for movement and buttons in the input manager and have the individual joystick movements all working perfectly fine.
My issue is getting unity to keep that Player ID and set it to a specific controller once disconnected and reconnected again as i will need to include an in game character switching method (somewhat similar to Trine 3 character switches). At the moment Unity is applying the joystick 0 player as which ever controller is being plug in first and etc with the other 3. Is there any way to assign controllers with player ID's so that im able to switch players on each controller when pressing down the "Y" button?
Your answer
![](https://koobas.hobune.stream/wayback/20220612131606im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
PlayerInput - SendMessages not working after changing the scene 1 Answer
Axis 9 and 10 not working with 2 Xbox 360 controllers plugged in 1 Answer
Xbox 360 gamepad numbers mixed up 0 Answers
Detect which local player clicked a button 0 Answers
GetButtonDown not responding to Xbox 360 Button presses 0 Answers