question

prasanth.akon@gmail.com avatar image
prasanth.akon@gmail.com asked

Unity Leaderboard - Setting and Getting Player Score

Hello,

This is my first time using playfab. So can someone help me with leaderboard in unity?It would be great if you could provide me some code snippets specifically for unity.

Thank you.

10 |1200

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

1 Answer

·
brendan avatar image
brendan answered

We have a number of documents available online with info on the statistics/leaderboard services:

https://playfab.com/tag/leaderboards/

https://api.playfab.com/docs/using-version-statistics

It sounds like the Getting Started video tutorial for Unity would likely be the best one to start with:

https://api.playfab.com/videos/Getting-started-with-Unity-and-PlayFab-Stats-Leaderboards

11 comments
10 |1200

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

adnannazir2012 avatar image adnannazir2012 commented ·

links are not working. Also is there a way to login from Facebook and use playfab leaderboard and save user pictures as well ?

0 Likes 0 ·
brendan avatar image brendan adnannazir2012 commented ·

There's an avatar URL as part of the player profile, but the login method used by your title is really going to be down to the individual. Let me know how you'd like to proceed.

1 Like 1 ·
adnannazir2012 avatar image adnannazir2012 brendan commented ·

I want a Leaderboard of friends and global. The player will login with Facebook, but as I see from the demo videos https://www.youtube.com/watch?v=Ugz7jlPcdas I want to show users' pictures as well.
This one is very theoretical https://www.youtube.com/watch?v=spbnub5PLzE

0 Likes 0 ·
Show more comments

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.