Networking spawn player prefab
Hi guys, I use the network manager for my project but i can't find a good way to instantiate my player prebab. I want that after i press a button the name, color and tag change from some parameters. I've seen that some people use an overide with OnServerAddPLayer but i don't see any good documentation to set this up and how it work.
Answer by solfrak · Dec 24, 2017 at 11:32 PM
Ok i found out myself what i need to do to instantiate my player. You have to put on the networkmanager script ClientScene.AddPlayer(0); and it work fine for me.
I still don't know how to change the color of the player so everyone can see it.
Your answer
Follow this Question
Related Questions
How do I rotate a Networked gameobject on spawn? 0 Answers
How to sync SetActive at NetworkServer.Spawn() ? 1 Answer
UNET 5.4 - Spawn an object from client...and move it around from client....? 1 Answer
NetworkServer is not active. Cannot spawn objects without an active server. 0 Answers
NetworkServer.SpawnWithClientAuthority not working? 1 Answer