[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Using a game engine on Android\n\nAs a developer, using a\n[game engine](https://en.wikipedia.org/wiki/Game_engine) lets you\nconcentrate your energy into building your game instead of having to build an\nentire technology stack.\n\nTake advantage of Android development tools\n-------------------------------------------\n\nAndroid development tools can assist your Android game development no matter\nwhich game engine is being used. [Android Studio](/games/develop/develop-as)\nincludes tools you can use to:\n\n- Examine the performance of your game using system, CPU and memory profilers\n- Inspect the contents of your game's package or application bundle\n- Integrate additional features of the Android SDK and NDK\n\nThe [Android GPU Inspector](/agi) can characterize the rendering performance of\nyour game and help you investigate the details of rendered frames using frame\ncapture.\n\nEvaluate your engine\n--------------------\n\nWhen considering a game engine for use on Android, you should evaluate its\ncompatibility with Google Play requirements and support of desired Android\nfeatures. Make sure your game engine supports common requirements as listed\nbelow.\n\n### Google Play requirements\n\nStarting in August 2021, Google Play will require all Android apps to be\nsubmitted as [Android App Bundles](/guide/app-bundle#get_started), and to use a\n[target API level](/distribute/best-practices/develop/target-sdk) of 30 or\nhigher. Verify that the engine you want to use can meet these requirements.\n| **Note:** For apps that target Android 16 (API level 36), the system ignores screen orientation, aspect ratio, and app resizablility restrictions to improve the layout of apps on form factors with smallest width \\\u003e= 600dp. See [App\n| orientation, aspect ratio, and\n| resizability](/develop/ui/compose/layouts/adaptive/app-orientation-aspect-ratio-resizability).\n\n### In-app purchases\n\nIf your game design uses in-app purchases verify that your engine has support\nfor the [Google Play Billing Library](/google/play/billing) (GPBL). Depending on\nthe engine, GPBL may be directly integrated into the engine, or may be\naccessible via an add-on or plugin.\n\n### Google Play Core features\n\nThe [Google Play Core Library](/guide/playcore) provides a runtime interface to\nthe Google Play Store. With the Play Core Library, you can:\n\n- Notify the user about app updates\n- Download and access data in asset packs\n- Request in-app reviews\n\nIf you intend to use any of these features, verify the engine supports the\nGoogle Play Core Library, either directly or using an add-on or plugin.\n\n### Application permissions\n\nSome Android features require user consent before they can be used by a game.\nThe Android [Permissions](/guide/topics/permissions/overview) system is used to\nrequest access to these features. If your game requires permissions, make sure\nthe engine has a method of specifying them in its project options, or allows you\nto customize the application manifest to include required permissions.\n\n### Notifications\n\nAndroid [Notifications](/guide/topics/ui/notifiers/notifications) are used to\nnotify or message the user when they aren't playing your game. If this feature\nis important to your game, verify the engine supports sending and processing\nnotifications.\n\nEngine resources\n----------------\n\nThe following commercial and open-source game engines have robust support for\nAndroid. For each game engine, we have provided guides on configuring engine\nprojects for Android to help ensure a polished and engaging user experience when\nrunning on an Android device.\n\n### Defold\n\nDefold is an open-source engine that uses the Lua programming language as its\nscripting language. Defold has extensive support for 2D games and graphics, with\nbuilt-in support for particles, sprites, tile maps and Spine models. Although\nDefold has a 2D focus, it uses a 3D rendering engine and supports rendering 3D\nmodels and meshes, as well as customizing materials and shaders. Physics support\nis built-in, with options for 2D or 3D physics. Defold is based around a visual\neditor with layout and property tools for game scenes and objects. The Defold\neditor includes integrated script editing and debugging features. Native code is\nsupported in the Defold engine through a plugin system.\n\n#### Guides\n\n- [Install and configure projects for Android](/games/engines/defold/defold-configure)\n- [Support multiple form factors and screen sizes](/games/engines/defold/defold-formfactor)\n- [Export to Android](/games/engines/defold/defold-export)\n\n### Godot\n\nGodot is an open-source engine suitable for both 2D and 3D games. It supports a\nrange of capabilities that encompasses everything from 2D sprites and tile maps\nto 3D models with physically-based rendering and global illumination. It has a\nbuilt in physics system that supports 2D and 3D physics. There are multiple\nprogramming language options for Godot, including the custom GDScript language,\nC# 8.0, C++, as well as visual scripting. Godot engine projects are built around\ncore Scene and Node objects. It includes a visual editor for creation and\nediting of these objects. The editor also features integrated editing and\ndebugging support for the GDScript language.\n\n#### Guides\n\n- [Install and configure projects for Android](/games/engines/godot/godot-configure)\n- [Godot renderer options](/games/engines/godot/godot-renderers)\n- [Support multiple form factors and screen sizes](/games/engines/godot/godot-formfactor)\n- [Export to Android](/games/engines/godot/godot-export)\n\n### Cocos\n\nCocos Creator is both an efficient,lightweight,free and open source\ncross-platform 2D and 3D graphics engine and a real-time interactive 2D and 3D\ndigital content creation platform. Cocos Creator offers many advantages such as\nhigh performance, low power consumption, streaming loading, and cross-platform\npublishing. You can use it to create projects in fields such as games, cars, XR,\nmetaverse, and so on.\n\n#### Guides\n\n- [Steps to build a game for Android in Cocos Creator](/games/engines/cocos/cocos-overview)\n- [Publish your game as Google Play Instant app in Cocos Creator](/games/engines/cocos/cocos-playinstant)\n- [Publish your game with Android App Bundle in Cocos Creator](/games/engines/cocos/cocos-aab)\n- [Remote debugging on Android](/games/engines/cocos/cocos-remotedebugging)\n\n### Unity\n\nUnity is a commercial game engine that has been used by many games. Unity is\ndesigned for both 2D and 3D game development. Unity has been used for everything\nfrom basic 2D sprite games to games featuring large complex 3D worlds. Unity has\nmultiple renderer options, including the Universal Render Pipeline, designed for\nperformant 2D or 3D graphics on mobile device hardware. Unity uses the C#\nprogramming language, with plugin support for interfacing with native code.\nBecause of its popularity, Unity has a wide range of official and community\ninformation and education resources. Unity operates the Unity Asset Store, which\nis a vast marketplace of prebuilt art and code assets, both free and paid,\navailable for use in Unity projects.\n\n#### Guides\n\n- [Android development with Unity](/games/engines/unity/unity-on-android)\n- [Create an Android App Bundle with Unity](https://blogs.unity3d.com/2018/10/03/support-for-android-app-bundle-aab-in-unity-2018-3-beta/)\n- [Integrate Play Asset Delivery](/guide/playcore/asset-delivery/integrate-unity)\n- [Lighting for mobile games in Unity](/games/optimize/lighting-for-mobile-games-with-unity)\n- [Use Android Performance Tuner with Unity](/games/sdk/performance-tuner/unity)\n\n### Unreal\n\nUnreal Engine 4 is a commercial game engine specializing in high-end 3D games\nwith sophisticated graphics. Unreal includes a visual editor for editing game\nlevels and working with imported models and material assets. Unreal Engine 4\ndoes not use a built-in scripting programming language. The Unreal Editor does\nfeature a visual scripting system called Blueprints, which can be used to\nconstruct game and interface logic. Game functionality can also be implemented\nas C++ code. Epic Games, the developer of Unreal, operates the Unreal Engine\nMarketplace as a digital storefront for Unreal Engine resources. The Unreal\nEngine Marketplace has a wide variety of prebuilt art and code assets available,\nboth free and paid, for use in Unreal projects. The [Android Game Development\nExtension](/games/agde) can be used to debug Unreal projects running on Android.\n\nFor information, see [Android development with Unreal](/games/engines/unreal/unreal-on-android)."]]