question

robert avatar image
robert asked

GetLeaderboardAroundPlayer.ProfileConstraints.ShowStatistics

Does GetLeaderboardAroundPlayer.ProfileConstraints.ShowStatistics already work?

We would like to access the player statistics in PlayFab.Client.Models.PlayerProfileModel.Statistics to show additional data in leaderboards

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

robert avatar image robert commented ·

We assume once GetLeaderboardAroundPlayer.ProfileConstraints.ShowStatistics is implemented the property Statistics is going to be populate in PlayFab.Client.Models.PlayerProfileModel, is this correct?

If this is the case we implement a little cloud script wrapper around GetLeaderboardAroundPlayer and return default values for the not yet working statistics for now. (as we go live very soon). Once GetLoaderboardAroundPlayer returns statistics we can use this wrapper to send the correct values back to the client, this way we can implement our client logic (displaying various fields of the statistics like rank, league index, etc. already).

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

Got it - so you plan to return default values for all players from your Cloud Script until the stats are available in the profile (which should be soon), but you're not querying each player's info - that would work fine, yes. We'll be finalizing the profile stats as soon as possible, as we're well aware that this is a hotly anticipated feature.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.