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?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
UNet CCU is not cleared
CS0030 Cannot convert type 'UnityEngine,Networking.PlayerController' to 'PlayerController'
How can I make a simple Lobby scene, while staying in the same scene all the time?
Exiting a UNET lobby causes future ClientRPC calls to be ignored.
Simple Question: Is the Unity 5.4+ "NetworkLobbyManager" bugged?