使用 Unity 制作游戏
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Unity 是一种跨平台游戏引擎,Google Play 商店上的很多游戏都是通过该游戏引擎制作而成的。Unity 的模块化工具可帮助您制作并发布引人入胜的 2D 或 3D 移动游戏。
使用 Unity 制作 Android 版游戏
如需为 Android 玩家打造游戏体验,请按以下步骤操作:
- 下载并安装 Unity Hub。
如需启动 Unity Hub,请点击 Installs(安装)标签页,然后点击 Install Unity editor(安装 Unity 编辑器)。安装支持 64 位应用的 Unity 编辑器版本。这些版本支持 Android App Bundle,后者可以提供更小且更完善的下载文件包。
安装 Unity 编辑器时,请务必包含 Android Build Support 模块(选中该模块旁边的复选框即可)。
- 展开 Android Build Support 模块。如果您使用的是 Unity 2019 或更高版本,请添加 Android SDK & NDK Tools 模块。
在项目标签页中,点击新项目。
如需开发游戏,请参阅学习页面。
Play Asset Delivery
Play Asset Delivery 可将 AssetBundle 和其他资源打包到 Android App Bundle 中,并通过 Google Play 进行分发。如需详细了解如何将此功能与 Unity 插件集成,请参阅文档和运行时 API 参考。
Play Integrity API
Play Integrity API 可帮助您检查游戏是否未经修改、是否由 Google Play 安装,以及是否在正版 Android 设备或 Google Play 游戏电脑版的正版实例上运行。当您检测到风险流量时,游戏的后端服务器可以做出响应,以防止未经授权的访问和作弊行为。如需详细了解如何将此功能与 Unity 插件集成,请参阅文档和运行时 API 参考。
Play 应用内更新
借助 Play 应用内更新,您可以在新版本推出时提示用户更新到游戏的最新版本,而无需用户访问 Play 商店。如需详细了解如何将此功能与 Unity 插件集成,请参阅文档和运行时 API 参考。
Play 应用内评价
借助 Play 应用内评价,您可以提示用户提交 Play 商店的评分和评价,而无需退出游戏。如需详细了解如何将此功能与 Unity 插件集成,请参阅文档和运行时 API 参考。
Play 游戏服务
借助 Play Games 服务,您可以通过 Unity 的 Social 接口访问 Google Play Games API,从而提供对各种功能的访问权限,例如使用 Google Play Games 账号进行玩家身份验证、与好友列表互动以及成就管理(解锁、显示和递增)。如需详细的设置和使用说明,请参阅文档。
16 KB 页面大小支持
页面是操作系统管理内存的精细程度。为了全面提升操作系统性能,并为设备制造商提供这种权衡取舍的选项,Android 15(API 级别 35)及更高版本可以采用 4 KB 或 16 KB 页面大小运行。配置为 16 KB 页面大小的设备平均会使用略多的内存,但也会获得各种性能提升。
Unity 为 Unity 2021、2022 和 Unity 6 提供 16 KB 页面支持。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-26。
[null,null,["最后更新时间 (UTC):2025-08-26。"],[],[],null,["Unity is a cross-platform game engine used by many games on the Google Play\nStore. Unity's modular tools help you produce and deliver highly engaging 2D or\n3D mobile games.\n\nCreate a Unity game for Android\n\nTo create a game experience for players on Android, follow these steps:\n\n1. [Download](https://unity3d.com/get-unity/download) and [install the Unity Hub](https://docs.unity3d.com/Manual/GettingStartedInstallingUnity.html).\n2. To start Unity Hub, click **Installs** tab and then click **Install Unity\n editor** . Install a version of the Unity Editor that [supports 64-bit\n apps](/games/optimize/64-bit#unity-developers). These versions support [Android App Bundles](/guide/app-bundle), which enable\n smaller, more optimized downloads.\n\n3. When you install the Unity Editor, make sure to include the [**Android Build\n Support**](https://docs.unity3d.com/Manual/android-sdksetup.html) module by checking the box next to it.\n\n - Expand the **Android Build Support** module. If you are using Unity 2019 or later, add the **Android SDK \\& NDK Tools** module.\n\n4. In the **Projects** tab, click **New project**.\n\n5. To develop your game, see the [learn](https://learn.unity.com/learn/) page.\n\nPlay Asset Delivery\n\nPlay Asset Delivery enables AssetBundles and other assets to be packaged into an\nAndroid App Bundle and delivered through Google Play. Refer to the\n[documentation](/guide/playcore/asset-delivery/integrate-unity) and [Runtime API reference](/reference/unity/namespace/Google/Play/AssetDelivery) for more information on how to\nintegrate this feature with Unity plugins.\n\nPlay Integrity API\n\nPlay Integrity API helps you check that your game is unmodified, installed by\nGoogle Play, and running on either a genuine Android-powered device or a genuine\ninstance of Google Play Games for PC. Your game's backend server can respond\nwhen you detect risky traffic to prevent unauthorized access and cheating. Refer\nto the [documentation](/google/play/integrity/setup#unity) and [Runtime API reference](/reference/unity/namespace/Google/Play/Integrity) for more information\non how to integrate this feature with Unity plugins.\n\nPlay In-app Updates\n\nPlay In-app Updates lets you prompt users to update to the latest version of\nyour game, when a new version is available, without the user needing to visit\nthe Play Store. Refer to the [documentation](/guide/playcore/in-app-updates/unity) and [Runtime API reference](/reference/unity/namespace/Google/Play/AppUpdate)\nfor more information on how to integrate this feature with Unity plugins.\n\nPlay In-app Reviews\n\nPlay In-app Reviews lets you prompt users to submit Play Store ratings and\nreviews without leaving your game. Refer to the [documentation](/guide/playcore/in-app-review/unity) and [Runtime\nAPI reference](/reference/unity/namespace/Google/Play/Review) for more information on how to integrate this feature with\nUnity plugins.\n\nPlay Games Services\n\nPlay Games Services lets you access the Google Play Games API through Unity's\n[social interface](http://docs.unity3d.com/Documentation/ScriptReference/Social.html) to provide access to features like player authentication\nwith Google Play Games accounts, interaction with friends lists, and achievement\nmanagement (unlocking, revealing, and incrementing). Detailed setup and usage\ninstructions are available in the [documentation](/games/pgs/unity/unity-start).\n\n16 KB page size support\n\nA page is the granularity at which an operating system manages [memory](https://android-developers.googleblog.com/2024/08/adding-16-kb-page-size-to-android.html).\nTo improve the operating system performance overall and to give device\nmanufacturers an option to make this trade-off, Android 15 (API level 35) and\nhigher can run with 4 KB or 16 KB page sizes. Devices configured with\n16 KB page sizes use slightly more memory on average but also gain various\nperformance improvements.\n\nUnity has 16 KB page support for [Unity 2021, 2022](https://discussions.unity.com/t/info-unity-engine-support-for-16-kb-memory-page-sizes-android-15/1589588) and [Unity 6](https://docs.unity3d.com/6000.0/Documentation/Manual/android-requirements-and-compatibility.html)."]]