文档

支持

Leaderboards

Understand the core concepts and implementation options for Leaderboards, a gaming service that ranks and stores player scores.
阅读时间1 分钟最后更新于 4 天前

Leaderboards 是 Unity Gaming Services(Unity 游戏服务)的一项功能,支持对玩家分数进行存储、排序和排名。

主题

描述

开始使用了解如何针对 Leaderboards 设置项目。
SDK 示例使用示例来了解如何在 Unity 项目中实施 Leaderboards。
SDK 文档熟悉 Leaderboards SDK,以便在 Unity 项目中使用在线多玩家排行榜。

接口

可以使用以下接口与 Leaderboards 进行交互并将其实施到您的应用程序中。
  • 使用 Dashboard(后台)创建和管理排行榜并查看条目。
  • 使用 REST API 为非 MWU (Made with Unity) 游戏实施 Leaderboards。
  • 使用 CLI 调用 Leaderboards 服务。
  • 使用 Unity SDK 在应用程序中实施 Leaderboards。
  • 使用 Cloud Code 服务实施 Leaderboards 功能。
  • 支持在命令行界面 (CLI) 进行部署
    • 允许使用文件而不是后台 UI 来配置 Leaderboards。
    • 将这些文件包含在版本控制中,并尽可能地减少后台上下文切换。

结果

结果

描述

所用服务

Display player names in LeaderboardsRetrieve player names using the Authentication service and display them in your Leaderboards.
Display Leaderboards in Lobby menusImplement Leaderboards in Lobby menus to let players compare themselves against each other.
Compare scores with FriendsLet players view Leaderboards for their friends and compare against each other.