Question by
LepperCEL · Apr 21, 2017 at 04:27 PM ·
unity 5networkingnetworknetworkplayer
Get name/variables from previously on server players
I'm new in Networking, i read alot of documentation but nothing seems to solve my problem.
I want to give a unique names (character name) for spawned player gameobject, it works for the players who connects after it, but the already on the server dont, same for its public variables.
There are any way to buffer at the server all players?
[SyncVar] public string pName;
[Command] void CmdNome(string nameIN) { RpcNome (nameIN); SetDirtyBit(1u); }
[ClientRpc]
void RpcNome(string nameIN)
{
pName = nameIN;
this.name = nome;
}
This is working like i said for players who log after "me".
Comment
Your answer
Follow this Question
Related Questions
UNET | How to use network messages? 1 Answer
Unity Photon doesn't Spawn Player 0 Answers
Lerping to Smooth Network Movement 0 Answers
UNET - How to wait for NetworkConnection.Send(...) to finish? 0 Answers