Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How can we show an specific Leaderboard in GameCenter?

Discussion in 'iOS and tvOS' started by ToniGuillem, Jun 6, 2012.

  1. ToniGuillem

    ToniGuillem

    Joined:
    Jan 25, 2012
    Posts:
    3
    When we try to show an specific Leaderboard in GameCenter, it always shows the default Leaderboard (specified in the GameCenter Manager of the App).

    In detail: Let's say we have 2 different leaderboards defined in the GameCenter Manager (LB_01 and LB_02). One of them has to be marked with "Default" tag (for example LB_01). Then, when we call Social.ShowLeaderboardUI(); in our game, it always shows the "Default" leaderboard (LB_01). Does anybody know how to specify which leaderboard to show?

    Or in other words, how would you do it to show the LB_02 without having to make it the "Default" leaderboard?
     
  2. foemoe

    foemoe

    Joined:
    Jun 13, 2012
    Posts:
    7
    I couldn't find a way to have Unity load specific leaderboards so I went ahead and bought the Prime 31 plugin -- specific leaderboard loading works with that plugin.
    (No I don't work for Prime 31 :)
     
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    It is not possible to do so through the inbuilt social api right now. You can only decide to show what you already found or not show anything.
    You would need to use a 3rd party GameCenter plugin like Prime31s
     
  4. ToniGuillem

    ToniGuillem

    Joined:
    Jan 25, 2012
    Posts:
    3
    Thank you!
     
  5. Petro19

    Petro19

    Joined:
    Jan 17, 2013
    Posts:
    3
    ryanterry, Cenkisabi and marcosroque like this.
  6. uistudios

    uistudios

    Joined:
    Apr 6, 2009
    Posts:
    46
    Petro19 you are the most awesome person ever!!! I can now call specific leaderboards :) Thank you!!!
     
  7. ichini

    ichini

    Joined:
    Oct 13, 2012
    Posts:
    23
    Resurrecting an ancient thread: Is there a way to show no specific leaderboard as the first screen? Meaning the GameCenter leaderboard overview with rating, like button, tabs, ...
     
    andsee and efge like this.
  8. kbumpious

    kbumpious

    Joined:
    Mar 31, 2015
    Posts:
    2
    Did anyone ever figure this out? I am interested.
     
    andsee likes this.
  9. Tekksin

    Tekksin

    Joined:
    Oct 20, 2013
    Posts:
    32
    I believe that's just: Social.ShowLeaderboardUI();
     
  10. andsee

    andsee

    Joined:
    Mar 20, 2012
    Posts:
    88
    @Tekksin You would have hoped so wouldn't you, but it shows the first leaderboard for me in Unity 5.1.3
     
  11. Tekksin

    Tekksin

    Joined:
    Oct 20, 2013
    Posts:
    32
    I'm running 5.2.1 and Social.ShowLeaderboardUI(); shows the "tap to rate this game" (top left) and Like Button to the right of that. Below are the tabs for scores and challenges. Is that not what we're looking for?
     
    Last edited: Oct 13, 2015
  12. andsee

    andsee

    Joined:
    Mar 20, 2012
    Posts:
    88
    Yup that's what I'm after. Perhaps it's been fixed in 5.2.1 or it's because I have several leaderboard sets each with 3 leaderboards in. But for me the call shows our first leaderboard and I have to hit back to get to the list of leaderboard sets.
     
  13. youblistermypaint

    youblistermypaint

    Joined:
    Aug 5, 2015
    Posts:
    14
    Sadly `GameCenterPlatform.ShowLeaderboardUI(leaderboardID, timeScope);` no longer seems to work (as of 5.3.5). It just opens the top level leaderboard interface.
     
    Last edited: Jun 13, 2016
  14. iMagesBlues

    iMagesBlues

    Joined:
    Mar 18, 2013
    Posts:
    71
    Same here. I'm currently using 5.3.3. Is there a bug report for this already?
     
  15. MattiasWargren

    MattiasWargren

    Joined:
    Jun 25, 2012
    Posts:
    10
    marcosroque likes this.