Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

Hi, may I ask, are there any easy ways to check if a username already exists without trying to upload a new entry with that name. I tried using the following script, but it always returns 1:

Leaderboards.Highscore.GetEntries(LeaderboardSearchQuery.ByUsername("test"), (msg) => {

    Debug.LogWarning(msg.Rank);

});

In this example, the "test" user is at the 2nd place, but even if I try it with any other placement, it always returns 1. I checked, and all the captions are correct.

Hello!

You could loop through every entry and compare the usernames, but why not just show a message that a different username must be used when the user tries to submit an entry?

I want to use it for a random username generator. I might try the looping, but I am scared, that it will result in a lot of lag. But thanks for the reply anyway, I might try looking into it a bit more!