PlayerPrefs
Understand how Unity Authentication uses player preferences to securely store authentication tokens.
阅读时间1 分钟最后更新于 8 个月前
登录后,会话令牌保存在 中,这是用于在游戏会话之间存储玩家偏好设置的类。它可以将 、 和 值存储进玩家的平台注册表。
PlayerPrefsstringfloatintegerUnity 使用以下 key 格式来隔离令牌:
$CloudProjectId.$Profile.unity.services.authentication.session_token其位置取决于平台。
要了解更多详细信息,请查看 PlayerPrefs 脚本参考文档。