Search Unity

Question about Network Lobby Example - OnLobbyServerSceneLoadedForPlayer();

Discussion in 'Multiplayer' started by Spyjack83, Apr 28, 2016.

  1. Spyjack83

    Spyjack83

    Joined:
    Nov 26, 2013
    Posts:
    4
    Hello Unitys,

    To me it is still unclear how the invoked on the server OnLobbyServerSceneLoadedForPlayer () works.
    I want the players can enter their name in the lobby and I will transmit this identity to the PlayerPrefabs. On the host side, it works, but not with the other clients. Is that normal?

    In the "Spaceship" sample project so be it, even with the latest version of Unity 5.3.4f1 it behaves exactly like that.
     
  2. Spyjack83

    Spyjack83

    Joined:
    Nov 26, 2013
    Posts:
    4
    Sorry, maybe I had a thinking error.
    I do not know if this is the usual way, but a call to a class with a SyncVar in PlayerPrefab I could achieve what I wanted with OnLobbyServerSceneLoadedForPlayer ().