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

Player Input Manager References

Discussion in 'Input System' started by faultybat, Mar 20, 2020.

  1. faultybat

    faultybat

    Joined:
    Mar 10, 2020
    Posts:
    1
    Hello I am trying to do a game where players join via the Player Input Manager and it works fine (albeit they spawn in same location which I am not sure how to change as of yet) But what I wanted to know is how I can reference each player that spawns in say like a script I attach to the Player Manager block to reference the ID they spawn with so I keep track of kills/stats for each player separately in a variable of their own?



    I would also like to know if it is possible to spawn 2 players from 2 different prefabs? Because then I could just hard code the kills vars into their own prefabs respectively and such but not sure.
     
  2. FerLuisxd

    FerLuisxd

    Joined:
    Apr 28, 2018
    Posts:
    2
    Having this same issue,

    Also will like to add that if it is possilbe to add another user in the same keyboard, for example for certain action we can have WASD for Player#0 and directionalKeys for Player#1? Atm it will only spawn 1 Player