This here is my code to create lobby, in this code i want to obtain the url of the lobby code that it creates when i print the statement in the debug.log
private async void CreateLobby()
{
try
{
string lobbyname = "MyLobby";
int maxplayer = 4;
CreateLobbyOptions createLobbyOptions = new CreateLobbyOptions
{
IsPrivate = false,
Player = GetPlayer(),
Data = new Dictionary<string, DataObject>
{
{"GameMode",new DataObject(DataObject.VisibilityOptions.Public,"TDM") }
}
};
Lobby lobby = await LobbyService.Instance.CreateLobbyAsync(lobbyname, maxplayer, createLobbyOptions);
hostLobby = lobby;
Debug.Log("CreatedLobby! " + lobby.Name + " " + lobby.MaxPlayers + " "+ lobby.Id +" "+ lobby.LobbyCode);
PrintPlayers(hostLobby);
}
catch (LobbyServiceException e)
{
Debug.Log(e);
}
}