Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Setup 2 Gamepads for Local Multiplayer

Discussion in 'Input System' started by Kevin_Buckeejit, Jan 5, 2023.

  1. Kevin_Buckeejit

    Kevin_Buckeejit

    Joined:
    Sep 8, 2022
    Posts:
    8
    Hi,

    I have a coop game where 2 teams have multiple player prefabs that the user can switch between to control a different character.
    This is working fine with just 1 team and 1 gamepad.
    I was hoping someone would be able to point me in the right direction to get 2 gamepads working, 1 controlling each of the 2 teams.
    I am using the new input system. I have 1 control scheme that all the player prefabs all use.

    • Can I assign a certain gamepad to control a certain team using Tags? (Gamepad 1 = Team1 Tag...)
    • Or do I setup different control schemes for the 2 teams? (Player1 Scheme, Player2 Scheme)
    I don't see the benefit of the 2nd option as all the characters use the same action maps, so I was hoping to just use what Gamepad the input is coming from to control what ever team the tag is assigned to.

    Any info greatly appreciated.