Upgrade 1.8 -> 2.0
Obsolete: MatchmakerClient
Cloud Service Accessor Migration
async void Start()
{
PlayerAccount playerAccount = await PlayerAccount.GetMainAsync();
//var lobbies = playerAccount.Services.Rooms.LobbyService; // <- old
var lobbies = playerAccount.Services.Lobbies; // <- new
var lobbySessions = await lobbies.GetLobbySessionsAsync();
Debug.Log($"You are currently in {lobbySessions.Count} lobbies.");
//var cloudStorage = playerAccount.Services.GameServices.CloudStorage; // <- old
var cloudStorage = playerAccount.Services.CloudStorage; // <- new
var storageId = (playerAccount.Id.ToString(), "Friends");
string[] friends = await cloudStorage.LoadObjectAsync<string[]>(storageId);
Debug.Log($"You have {friends.Length} friends: {string.Join(", ", friends)}.");
}CloudService.Regions
Lobby Creation
For Room
Not For Room
CreateLobbyOptions.Secret → Password
RefreshRegions → RefreshRegionsInfo
Was this helpful?

