玩家名称管理
Manage player display names and handle naming updates throughout the player lifecycle.
阅读时间1 分钟最后更新于 1 个月前
SDK 最低版本:2.5.0-pre.3.确保您使用的是正确的版本。 玩家可以在其 Player ID 下关联一个玩家名称,使其能以更易于阅读的方式展现个性化身份。Player ID 精确对应一个玩家名称,反之亦然。
设置玩家名称
玩家必须登录才能创建或更新玩家名称。使用AuthenticationService.Instance.UpdatePlayerNameAsync(playerName)UpdatePlayerNameAsyncUpdatePlayerNameAsync获得玩家名称
玩家必须登录才能获得玩家名称。使用AuthenticationService.Instance.GetPlayerNameAsync()GetPlayerNameAsync缓存
每次调用UpdatePlayerNameAsyncGetPlayerNameAsyncAuthenticationService.Instance.PlayerNameGetPlayerNameAsync