Hey All,
I’m working on an end game screen where the player can see a leaderboard. But, whenever I need to show the leaderboard, I need to only show rows or highscores of players with a same code. So If I have a db with 50 rows of player highscores saved and each row has columns like id, name, ccode, highscore, after querying to receive only rows with ccode=123, i’ll receive, say, 23 rows where the column field ccode has the value 123.
I have been searching for a while now and found services like Gamesparks but haven’t been able to confirm whether this is possible… Are there any Baas you guys know that is capable of doing the above?
Unity has their own built-in Social api for this type of thing. It basically falls back to use various third-party services for leaderboards/player data based on the platform that you publish to. Linky: Unity - Manual: Social API
There are other services like gamesparks as you have mentioned, but if all you need is leaderboards you’ll find the most portability from unity’s social api.
1 Like
You should be able to do exactly what you want with GameSparks, because you can write server side code (cloud code) with which you can write a query for your leaderboard data that returns only the data you require.
You can make the leaderboard request flexible by having parameters that can be set in Unity and passed to the cloud code function to enable you to easily return different sets of data with the same request.
The leaderboard system in GameSparks is very flexible and in my opinion is much better to work with than something like Google Play Game Services, although it does require a little more effort to display the leaderboards initially as there is no ready made leaderboard UI available.
1 Like