Hi,
as the title says, I'm trying to get player attributes via GetMatch, but each time, the EscapedDataObject or DataObject variable in a member's Attributes is completely empty. This is the request:
PlayFabMultiplayerAPI.GetMatch(new GetMatchRequest() { EscapeObject = true, MatchId = matchId, QueueName = queueName, ReturnMemberAttributes = true, }, ...
and this is what I submit in the ticket request:
new MatchmakingPlayerAttributes { DataObject = new { PlayFabID = "<playfab id>", Rank = "<rank>" } }
I tried with EscapeObject both true and false. If true, EscapedDataObject for each match member will be "{ }", if false, I can try to get something out of DataObject like this (this in a loop that goes through all the match members):
JsonObject jsonResult = (JsonObject) member.Attributes.DataObject; object res; jsonResult.TryGetValue("PlayFabID", out res); string id = (string) res; Debug.Log("id: " + id)
but I just get an empty string. What am I doing wrong?