Skip to main content

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

I am having trouble figuring out how UpdateEntryUserName is used. I don't know much about C# and it would be helpful if you could provide a example scenario and script where you might use UpdateEntryUserName and how it is different from UploadNewEntry. You don't have UpdateEntryUserName in your demo scene for some reason. 

Hello there!

As of now, the UploadNewEntry could also be used to alter the username of the player. But since you are curious, here is an example:

LeaderboardCreator.UpdateEntryUsername(YOUR_PUBLIC_KEY, "New username", callback: isSuccessful =>
{
    if (isSuccessful)
        Debug.Log("Username updated successfully");
    else
        Debug.LogError("Username update failed"); 
}, errorCallback: errorMessage =>
{
    Debug.LogError(errorMessage);
});