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。
- 使用客户端 REST API 执行玩家操作。
- 使用 Admin REST API.执行管理员操作。
- 使用 CLI 调用 Leaderboards 服务。
- 使用 Unity SDK 在应用程序中实施 Leaderboards。
- 使用 Cloud Code 服务实施 Leaderboards 功能。
- 支持在命令行界面 (CLI) 进行部署。
- 允许使用文件而不是后台 UI 来配置 Leaderboards。
- 将这些文件包含在版本控制中,并尽可能地减少后台上下文切换。
结果
结果 | 描述 | 所用服务 |
|---|---|---|
| Display player names in Leaderboards | Retrieve player names using the Authentication service and display them in your Leaderboards. | |
| Display Leaderboards in Lobby menus | Implement Leaderboards in Lobby menus to let players compare themselves against each other. | |
| Compare scores with Friends | Let players view Leaderboards for their friends and compare against each other. |