- Home /
LobbyManager different prefabs
Hi, any suggestion or code to spawn a different player prefab for each player on the Unity´s Lobby Manager?
So it would be: the firstplayer who joinsthe game is Player1.prefab and second one Player2.prefab. Thanks :D
Answer by jimmycrazyskills · Dec 22, 2018 at 02:36 PM
Hi mate, one way you could do this is to spawn a generic gameobject (maybe an empty) that has a script attached which then can call a spawn command to the server depending on what you want to be spawned as.
Hope this made sense :)
Answer by hexagonius · Dec 22, 2018 at 02:55 PM
you already choose the prefab to spawn (in your other question). why not counting connected players and change what to choose depending on the count?
Your answer

Follow this Question
Related Questions
Player Prefab on Lobby Managers? 5 Answers
Unity Multiplayer Different Player Prefabs 1 Answer
Multiple player prefabs in the network manager? 4 Answers
"GameObject Player is a prefab, it can't be spawned. This will cause errors in builds." 8 Answers
OnStart ___ vs OnLobbyStart ___ methods from NetworkManager and NetworkLobbyManager 1 Answer