- Home /
What is the correct way to destroy a UNET Network Match
I destroy my matches using the safed networkId: m_netId = matchInfo.networkId;
I do so by calling NetworkManager.singleton.matchMaker.DestroyMatch: ((UnityEngine.Networking.Types.NetworkID)m_netId, OnDestroyMatch);
Then I disconnect my host in the OnDestroyMatch public static void OnDestroyMatch(BasicResponse response) { Debug.Log("Match Destroyed" + response.ToString()); NetworkManager.singleton.StopHost(); NetworkManager.singleton.StopMatchMaker(); NetworkManager.Shutdown(); Destroy(GameObject.Find("Network Manager")); NetworkTransport.Shutdown(); }
This worked well for me until a recent update, where even though the response returns a success, the match won't get destroyed. It is still displayed in the list.
Your answer
Follow this Question
Related Questions
How to destroy a match unity networking 0 Answers
[Unity Multiplayer] Unet matchmaker stopped finding matches suddenly 2 Answers
UNET Matchmaking Filter Issues 1 Answer
Unity networking tutorial? 6 Answers