Search Unity

No docs for OnPlayerConnected/Disconnected/DisconectedFromServer - how to use?

Discussion in 'Multiplayer' started by MrLucid72, Dec 17, 2016.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    995
    I tried searching this on API docs, but 0 results. These seem especially useful for the NetworkLobbyManager because all the other overrides just provides the NetworkConnection, while OnPlayerDisconnected actually provides the NetworkPlayer.

    I would love to use this, but how?

    I can't override it -- but I can plainly type "public void onPlayerConnected(NetworkPlayer player)" and Intellisense will fill it all out for me. I thought maybe it's like "void start()" that just happens auto"magically", but none of these voids ever trigger.

    So.. how do I use them within NetworkLobbyManager class?
     
  2. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
  3. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    995
    Thanks for the link, but gah, the ultimate bloated OnGUI examples sparsly showing HLAPI samples (although it WAS a nice start to start somewhere). I saw this before. However, I can't even find the LobbyGUI sample for lobby and know it's there somewhere.. I tried posting a few places asking for the location after failing to browse for it successfully. If you ever saw it there let me know .. I don't know if it's new or not because bitBucket is constantly outdated O__o
     
    Last edited: Dec 19, 2016