I’m trying to make a system to be able to choose the skin at the start, I just wanted to change the NetworkManager’s PlayerPrefab but I wasn’t successful so I decided to instantiate a different player Prefab for each player but it instantiates more only for the host, the client is on the start screen as if it had not connected, but his Prefab instantiates on the host.
Did you network spawned the prefab when instantiating on host?
I managed to solve it I just needed to add the Prefabs in NetworkPrefabs in NetworkManager
Hi @kauanvicto700 , I wouldn’t recommend this approach, as it forces you to duplicate all player’s script on different prefabs. Instead, I’d use a ServerRpc to make the client pick the skin, and a ClientRpc to notify the picked skin to all clients. You can use an ID to say what skin was picked, and load the skin prefab at runtime as a child of the player
This does not support newly connected clients. NetworkVariable is a much better choice, as it gets synchronized when a player connects. BOOM headshot.
Correct! I was assuming that you make people choose only when everybody is in the lobby. But yes, if that’s not the case, NetworkVariable is a better choice.