Posted May 14, 2023 by Danial Jumagaliyev
#leaderboard #leaderboard-creator #networking #online-leaderboard
This update brings quality of life features, bugfixes and optimizations.
LeaderboardCreator.UploadNewEntry(...) LeaderboardCreator.UpdateEntryUsername(...) LeaderboardCreator.DeleteEntry(...)
Previously, undermining the cause of failure to upload an entry was hard, so now during errors these additional callbacks will deliver a string with the status code and error response from the server.
LeaderboardCreator.ResetPlayer()
Many people were frustrated about why a single player could have only one entry. Well that is because each player will have a unique identifier attached to them on initialization and it will be stored permanently in PlayerPrefs. With this, players can edit or delete only their own entry. This identifier is also used to determine which entry that is being displayed on the leaderboard belongs to the player. Several people apparently were not satisfied with this, so I made this new function. After uploading a new entry, you can call it and the next time the player submits again, instead of overwriting the previous one it should create a new one. Just note that the previous ones would be unable to be changed or deleted afterwards.