Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

What happened to UnityEngine.Networking.Match?

Discussion in '5.4 Beta' started by Deleted User, Mar 25, 2016.

  1. Deleted User

    Deleted User

    Guest

  2. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,261
    The API got heavily simplified. MatchInfo and MatchInfoSnapshot are now the only things needed for the new callbacks. For example:

    Code (csharp):
    1. matchMaker.JoinMatch(..., OnMatchJoined);
    2.  
    3. public override void OnMatchJoined(bool success, string extendedInfo, MatchInfo matchInfo)
    4. {
    5.   ...
    6. }
    No JoinMatchRequest/JoinMatchResponse and other stuff. You can find these callbacks by looking through and actually using the API in your code (with intellisense). Nevertheless, the online docs are a bit outdated (the API changed in a previous 5.4 beta).
     
    Stephen_O and landon912 like this.
  3. landon912

    landon912

    Joined:
    Nov 8, 2011
    Posts:
    1,579
    This is nice, UT, please continue to do this with the entire networking API.