Hi, hope you are doing well.
I have recently switched to playcanvas from unity to make a Game for Web and they support playfab but I am having it a bit rough to make a simple leader board; coming from C# to Js environment .Upon searching many requests, i have found that there isnt a lot of material related to PlayCanvas x PlayFab, therefore i am writing my query here and hope it get answered for future purposes. (It would be wonderful if i get any helpful/side material related to Playcanvas and Playfab).
So coming to my question, i am having trouble in getting the leaderboard from the playfab player database. For updating statistics, the solution has been completed where i used the following code to update my score and it works like a charm.
PlayFabManager.prototype.UpdateStats=function(score){ var updateStatsRequest ={ Statistics:[{StatisticName:"UserScores",Value: score }] }; PlayFabClientSDK.UpdatePlayerStatistics(updateStatsRequest, updateStatsCallback); };
But i want this leaderboard entry to be displayed inside my game. Any solution how this may be possible.
Thank you, hope you have a good day.