Hello,
So I just created a leaderboard stat using the Playfab Game Manager but what do I do next to access that leaderboard to add values to it?
Thanks,
jrDev
Hello,
So I just created a leaderboard stat using the Playfab Game Manager but what do I do next to access that leaderboard to add values to it?
Thanks,
jrDev
The statistics reported for players are the entries in the leaderboards. By default, UpdatePlayerStatistics is not enabled for the Client (since we don't trust the client to not cheat), so I'd recommend calling it from Cloud Script, so that you can put appropriate cheat checking into the script ahead of the statistics update call.
Yes, there's an example script in all of the samples here (https://github.com/PlayFab/PlayFab-Samples) which shows writing statistics using UpdatePlayerStatistics. These examples currently show using RunCloudScript (our older API) to call the scripts, but we'll be updating them to use ExecuteCloudScript soon.
No one has followed this question yet.