- Home /
Question by
haroldgeronimo · Sep 19, 2018 at 06:43 PM ·
networkingmultiplayerlobby
Proper way of hiding the lobby when entering the main game (Multiplayer)
I was creating a multiplayer rts game with a lobby. I created this lobby UI on top of the NetworkLobbyManager. When entering the main game I used the method OnLobbyServerSceneLoadedForPlayer to hide my UI. the problem is that only the server UI is hidden. Am I doing this wrong? Is there a more proper way to do this action?
public override bool OnLobbyServerSceneLoadedForPlayer(GameObject lobbyPlayer,GameObject gamePlayer){
bool value = base.OnLobbyServerSceneLoadedForPlayer(lobbyPlayer,gamePlayer);
playerUIiPanel.SetActive(false); //hides the lobby UI
return value;
}
Comment
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
switching from NetworkManager to LobbyNetworkManager: NullReferenceException 1 Answer
Best method; Multiplayer server browser/lobby? 1 Answer
[Multiplayer Lobby] Spawned enemies not seen in client's space.... 1 Answer
NetworkLobbyPlayer SendNotReadyToBeginMessage doesn't exist? 1 Answer