Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Problem loading leaderboard scores using Social in Unity4

$
0
0
I'm trying to show scores from one of our leaderboards but I either get only the highest score or none at all even though we have about a dozen scores.

This code returns only the highest score:
Code (csharp):
  1. Social.LoadScores("HS_Leaderboard_1", scores => {
  2.     if (scores.Length > 0) {
  3.         Debug.Log ("Got " + scores.Length + " scores");
  4.         string myScores = "Leaderboard:\n";
  5.         foreach (IScore score in scores)
  6.             myScores += "\t" + score.userID + " " +...
Problem loading leaderboard scores using Social in Unity4

Viewing all articles
Browse latest Browse all 10823

Trending Articles