Search Unity

How do I get controller "numbers"?

Discussion in 'Input System' started by Blitz54, Jan 28, 2021.

  1. Blitz54

    Blitz54

    Joined:
    Dec 20, 2020
    Posts:
    20
    So, I'm currently implementing the new input system here. If I go in game, mouse and keyboard controls one player at random, and Gamepad controls another. Still buggy as mouse/analog stick will interfere with eachother for rotation, but I'll look into that later on.

    And to start, I also use Bolt for majority of my scripting. Still very new, so written code I am not very comfortable yet, just to keep in mind.

    What I'm looking to do, is assign each new gamepad upon activation, to a specific slot every time on the player select screen. So if a second gamepad is plugged in and they press Start, it'll assign them to player 2. Then, when the game starts, it activates the proper character and assigns that same gamepad number to that character.

    Thanks!