V2.8 Update!


This update brings new features requested by the community and tons of bugfixes!

New Additions

Updated and improved documentation

Check out the new documentation of the tool in GitHub!

Function for getting the total count of entries in a leaderboard

Leaderboards.YourLeaderboard.GetEntryCount(Action<int> callback, Action<string> errorCallback[optional])

Here are the parameter descriptions:

  • callback - A function that is called when the request is successful, returning the total count of entries in the leaderboard.
  • errorCallback - A function that is called when the request is unsuccessful.

Resetting keys

Did your public key or secret key get leaked? Not to worry, now you can change the keys for your leaderboard by pressing the "Reset" button for your respective leaderboard in the menu.

Authorization Save Modes

Developers now have the choice to handle saving authorization details either automatically using PlayerPrefs, a text file stored in the Persistent Data Path, or manually.

Authorization Modes

Player Prefs

This mode is the default and it will hold the player's unique identifier as a key stored in Player Prefs.

Persistent Data Path

This mode is an alternative to Player Prefs, where the unique identifier is stored into a file, which will be stored in the Persistent Data Path.

Unhandled

This mode disables automatic authorization, meaning it will be up to you to handle proper saving and loading of the user's authorization. Make use of these functions to get/set the user GUID (unique identifier):

/// <summary>
/// Requests a new unique identifier for the user from the server.
/// </summary>
/// <param name="userGuidCallback">A callback that returns the user's unique identifier.</param>
LeaderboardCreator.RequestUserGuid(Action<string> userGuidCallback)
/// <summary>
/// Sets the user's unique identifier to the given string value. 
/// </summary> 
/// <param name="userGuid">The user's unique identifier.</param>
LeaderboardCreator.SetUserGuid(string userGuid)

Blacklisting users (exclusive to Advanced Leaderboards)

You can now block users by usernames or their user GUIDs.

Other Changes

  • LeaderboardCreator.UpdateEntryUsername() is now deprecated
  • Added extra overloads for the GetEntries() method
  • Usernames now have a max size of 127
  • The editor window now has a Settings tab (which will get more options in the future!)

Bugfixes

  • The "Unique Usernames" toggle has been fixed and should now allow users to upload their entries regardless of the username being the same.
  • Fixed UI overlaps in the menu
  • Fixed random loss of user IDs in a leaderboard

Files

Leaderboard Creator V2.8 (Unity Package) 12 kB
28 days ago
Leaderboard Creator V2.8 [+Demo Scene] (Unity Package) 31 kB
28 days ago

Get Leaderboard Creator

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

im using unity 2019.4.40f1 and after I import the asset package i get a ton of syntax errors for ConstantVariables.cs  such as 

Assets\LeaderboardCreator\Scripts\Utils\ConstantVariables.cs(11,45): error CS1003: Syntax error, '(' expected

I am not sure how to resolve. Any advice?
Thanks, Brad