- Home /
Question by
ZuhairGhias · Apr 29, 2018 at 08:28 PM ·
networkingmultiplayernetwork
UNET AddPlayerForConnection with already existing player GameObject
UNET requires you to do the following:
GameObject player = Instantiate(playerPrefab, spawnLocation);
NetworkServer.AddPlayerForConnection(conn, player, playerControllerId);
But is there a way to use an already existing Object in the scene?
Comment
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Network command is running on client? 1 Answer
Do i need to have 2 seperate apps communicating for server/client relationship? 2 Answers
UNet changing player prefabs int the network lobby sample. 0 Answers
Is Start() always after OnStaretLocalPlayer() and isLocalPlayer 0 Answers