Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Local Multiplayer Player prefab

Discussion in 'Multiplayer' started by ReeceHunter, Apr 29, 2020.

  1. ReeceHunter

    ReeceHunter

    Joined:
    Jan 20, 2014
    Posts:
    2
    I am using the new Input system for a local multiplayer game. I am trying to make a character selection menu where each player chooses their character, but in the Player Input Manager, there is only one option for which prefab you want the player to be.
    How can I make it each player can select their own character and have them instantiated?
     
  2. XenRah

    XenRah

    Joined:
    Dec 1, 2018
    Posts:
    1
    This is also my problem. I have been thinking about something similar to the character selection screen from Mario kart for example. But I can't figure out how to use different prefabs for the different players.
     
  3. unity_-QPy_GmpO0IxHA

    unity_-QPy_GmpO0IxHA

    Joined:
    Oct 1, 2022
    Posts:
    1
    You could change the prefab that is going to be instanitated in the PlayerInputManager.instance.playerPrefab while the game is running