Question by
ALI3D69 · Apr 17, 2017 at 07:25 PM ·
networkinglobby
how to transfer variables from lobby player to game player on client
i use this code on LobbyManager to transfer variables from lobby player to game player:
public override bool OnLobbyServerSceneLoadedForPlayer(GameObject lobbyPlayer, GameObject gamePlayer)
{
gamePlayer.name = lobbyPlayer.name;
}
but, it worked only on server. and it dos not let me to call command on gamePlayer because its not local player!
is there any other function like OnLobbyServerSceneLoadedForPlayer, that call on all client? or any other way to transfer variables from lobby player to game player?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612115934im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I use an InputField to change a player object's variable? 1 Answer
Unity Lobby, player get disconnected if game has already started. 1 Answer
UNet Lobby How to determine if this instance is Client/Server 0 Answers
LobbyPlayer not created when initially hosting game 0 Answers
How to correctly change scene with a Lobby Manager? 0 Answers