Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Multiplayer - Join Player Manually - 2 devices assigned to the same player

Discussion in 'Input System' started by MarshallW906, Feb 23, 2020.

  1. MarshallW906

    MarshallW906

    Joined:
    Jan 15, 2017
    Posts:
    1
    Hi,

    I'm using the latest input system (preview.5 1.0.0) and trying to create a multiplayer game.

    However, in my game, I would like to create 2 different characters (players) with different control schemes. So I didn't use playerPrefab and I chose "Join Player Manually", but put 2 different characters (of course with PlayerInput) directly in the scene.

    But when I ran the demo, I found my two Xbox Controllers were automatically paired to the same player, instead the other player object is left static.

    What I've done is basically setting up two different inputactions and assigning them to the 2 PlayerInput, selecting "Invoke Unity Events" and linking the callback functions.

    Has anyone encountered this problem before?
     
  2. FullMe7alJacke7

    FullMe7alJacke7

    Joined:
    Dec 17, 2013
    Posts:
    55
    I had a similar issue as well trying to do the same with an oculus rift & keyboard with mouse; Still haven't resolved it as I was thinking maybe my scheme was set to the incorrect devices for the rift.

    It wouldn't even make a new user like in the Unite demo, it just duplicated the actions but reassigned the same user to the kb+m inside the input debugger window.