ControlScheme Rebinds to other gameObjects, How to rebind same controller to same gameobject?

HI,

I’m trying to rebind the control scheme back onto the same gameobject(player) however sometimes a different gamepad (xbox controller) gets bound, meaning player1 can get controlled by controller 2 rather than controller 1.

When ever I disable and enable my players (number of players is 4) I lose my control schemes and players wont move so I made a function that rebinds controls (and this works and each different controller moves a different player) however sometimes a controller gets bound to a different player.

Here is my rebind scheme:

This gets called after the “ResetPlayers” functions which first disables all the players and enables them.

Is there anyway to ensure that same controller gets bound to the same previous player?

As I also suggested in another topic, you need to differentiate between actual “Player” (PlayerInput / InputUser) and your InGame “Player” (Character or whatever). Once you create a Player, you should never destroy it or disable it. You can do whatever you want with your character,s, but keep the player (you can disable action or prevent them from doing things in your callbacks or wherever you want)