Hey all, thanks for helping and let me know if you need more information ๐๐ป
Unity Version: 6000.1.3
Leaderboards version: 2.3.3
Original use case: Show steam name as player name in leaderboard.
Original issue: Steam names are not compatible with unity player names (e.g., no space allowed)
Note: I am using SteamFriends.GetPersonaName() as the steam name.
Current use case: Provide steam name as is in metadata for each score added. Scores are updated from within cloud code c# module
Current issue: gameApiClient.Leaderboards provides only one method to add a score AddLeaderboardPlayerScoreAsync and this method does not allow to provide metadata, here is its signature:
Task<ApiResponse<LeaderboardEntryWithUpdatedTime>> AddLeaderboardPlayerScoreAsync(
IExecutionContext executionContext,
string accessToken,
Guid projectId,
string leaderboardId,
string playerId,
LeaderboardScore? leaderboardScore = null,
CancellationToken cancellationToken = default (CancellationToken));
Navigating to LeaderboardScore makes clear it only takes a score and no metadata; its only data member is Score. For additional info about my research pls consider the thread.
Questions:
- is there a way to provide metadata when adding a leaderboard player score from within cloud code?
- What is the recommended way to show steam names in a leaderboard, considering that unity's playername doesn't accept all steam names (e.g., no space allowed)?