Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by gregustamas · Dec 07, 2017 at 11:15 PM · Player Dataunity3dLeaderboards and Statistics

,How to post user points to a certain leaderboard and get the leaderboard back in Unity?

I can't find any tutorials about how to make this, but I want to be able to do the following:

The user should be able to post the score to a certain leaderboard named Ranking. (without Facebook or any other registration...yeah, I don't need any password management, anything at all. Just the user should write the username and his points would post to the leaderboard). So I don't need any authentication.

Maybe this still needs LoginWithCustomId, but I'm also not sure about that.

And I want to be able to get the certain Leaderboard datas (username and point, only two datas would be enough for one player).

Sadly I can't find any tutorials for the PlayFab. This tutorials are unusable for me, UpdatePlayerStatistics has no parameters for identifying the username at all, or I don't understand anything about this:

https://api.playfab.com/platforms#unity

I also can't see the difference between UpdateUserData and UpdatePlayerStatistics. I couldn't refresh the player's score with any of them. Maybe I just don't know how to use them.

Please help me and provide me some examples.

Comment

People who like this

0 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gregustamas · Dec 07, 2017 at 10:42 AM 0
Share

https://imgur.com/a/vyl43

This is the Value I would like to update from code. But this code does nothing:
https://pastebin.com/D9ACMPdp

avatar image gregustamas · Dec 07, 2017 at 11:31 AM 0
Share

I solved this.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Dec 07, 2017 at 11:20 PM

For the sake of others with the same or similar questions:

1. Yes, to make any Client API call (apart from login and password reset), the client must be signed into PlayFab, but you can do that with zero-friction sign-in calls using Device ID or a locally generated GUID (Custom ID). Each unique player must sign into a distinct account, but by using logins that can cross devices (like Facebook, Twitch, Google, etc.), you can consistently sign the player into the same account from any device.

2. For leaderboards, you can get all the profile data for users, along with their scores. I'd recommend these tutorials: https://api.playfab.com/docs/tutorials#landing-tournaments.

3. Player data (arbitrary strings) is distinct from player statistics (numeric). For data, I'd recommend this tutorial: https://api.playfab.com/docs/tutorials/landing-players/using-player-data.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    1 Person is following this question.

    avatar image

    Related Questions

    Is it possible to authenticate two users from one device? 1 Answer

    Can we get particular players from a leaderboard to show in game 2 Answers

    A particular user corrupts leaderboard 1 Answer

    Updating Online / Offline status of player? 1 Answer

    Send parameters to cloud Script on event 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges