> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 常规 PlayFab 示例

> 浏览跨 SDK 和引擎的 PlayFab 代码示例,展示如何集成身份验证、经济和多人服务等功能。

这些示例演示了如何使用各种 PlayFab 功能。

| 示例名称                                                                                                                      | 平台             | 引擎             | 描述                                                                                 | 演示的功能                                                       |
| ------------------------------------------------------------------------------------------------------------------------- | -------------- | -------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [PlayFabEconomy](https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/Android/PlayFabCommerce)                  | Android        | Android Studio | 此示例使用 Android 的应用内计费 API 和 PlayFab 客户端 API,演示一个应用内商店,用真钱兑换 PlayFab Economy 中的虚拟物品。 | <ul><li>登录</li><li>应用内购买</li></ul>                          |
| [PlayFabSignIn](https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/Unity/PlayFabSignIn)                       | iOS、Android、PC | Unity          | 此示例演示了一个简单的 PlayFab 登录流程。你可以使用电子邮件/密码登录,创建账户,或者以访客身份登录。登录信息可以在示例的多次执行之间被记住。        | <ul><li>登录</li></ul>                                        |
| [PlayFabEventsUnity](https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/Unity/PlayFabEventsUnity)             | Android、iOS、PC | Unity          | 此示例演示了在 Unity 游戏中发送事件。该示例涵盖了玩家事件、游戏事件和角色事件。                                        | <ul><li>事件</li></ul>                                        |
| [PlayFabLeaderboardsUnity](https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/Unity/PlayFabLeaderboardsUnity) | Android、iOS、PC | Unity          | 此示例演示了在 Unity 游戏中读取和写入排行榜。该示例涵盖了最低分/最佳时间、最高分和累计分排行榜。                               | <ul><li>排行榜</li></ul>                                       |
| [ThunderRumble](https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/Win32/ThunderRumble)                       | PC、XBOX        | C++ DirectX 原生 | 此示例演示了可扩展的云专用服务器功能,使用 PlayFab Multiplayer Servers 技术构建完整的端到端游戏体验。                  | <ul><li>登录</li><li>匹配</li><li>Multiplayer Servers</li></ul> |

## 另请参阅

* [Multiplayer Servers 示例](/services/playfab/multiplayer/servers/server-samples-resources)
* [Party 示例](/services/playfab/multiplayer/networking/party-samples)


## Related topics

- [秘诀](/zh-CN/services/playfab/resources/playfab-recipes.md)
- [PlayFab 统一 SDK 快速入门设置](/zh-CN/services/playfab/sdks/unified-sdk/quickstart-setup.md)
- [创作游戏服务器生成](/zh-CN/services/playfab/multiplayer/servers/author-a-game-server-build.md)
- [PlayFab 基础](/zh-CN/services/playfab/get-started/index.md)
- [使用 PlayFab Multiplayer Servers 托管多人游戏](/zh-CN/services/playfab/multiplayer/servers/using-playfab-servers-to-host-games.md)
