public void JoinLobby(string lobbyConnectionString)
{
Dictionary<string, string> customData = new Dictionary<string, string>();
customData.Add("PlayerName", Username);
PlayFabMultiplayer.JoinLobby(
new PFEntityKey(PlayFabAuthenticationContext.EntityId, PlayFabAuthenticationContext.EntityType),
lobbyConnectionString,
customData
);
}
I tried to enter a lobby with this code snippet, and attempted to retrieve the customData dictionary I defined here, but I could only access the MemberProperties of the lobby creator. Am I possibly misusing customData
public void GetLobbyPlayer()
{
List<PFEntityKey> lobbyMembers = new List<PFEntityKey>(Lobby.GetMembers());
Dictionary<string, string> memberProperties = new Dictionary<string, string>(Lobby.GetMemberProperties(lobbyMembers[0]));
foreach (var item in memberProperties)
{
UtilityMethods.Log("MemberName: " + item.Value);
}
}