Skip to main content

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

public void RequestRank(string userName)

    {

        var query = LeaderboardSearchQuery.ByUsername(userName);

        LeaderboardCreator.GetLeaderboard(publicleaderboardkey, false, query, (rankData) =>

        {

            usernameplace = rankData.Rank;

        });

    }

Hello i am trying to get rank by name but this always return me 0.

Thanks.

Hello!

The search is case sensitive, so make sure the username is written exactly as is.

Hello I checked and it's 100% exactly this name and still returns 0

Try querying with a higher value on the Take parameter field of the query. So after instantiating the query object, write:


query.Take = 1000;

Ok Thanks