游戏引擎支持
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
流行的多平台游戏引擎在一段时间内支持 Vulkan。不过,由于设备支持级别不同,这些游戏引擎实现了将良好设备列入许可名单以及将已知不良设备列入拒绝名单的方法。
您可以从这些引擎的默认列表开始,让引擎在受支持的设备上自动使用 Vulkan,在不支持的设备上回退到 OpenGL ES。
Unity
如需在 Unity 上启用自动设备选择功能,请按照相应步骤配置 Auto Graphics API。
使用 VkQuality Unity 引擎插件提供图形 API 的启动时建议,以便在特定设备上使用您的游戏。
Unreal Engine
如需在 Unreal Engine 上启用自动设备选择功能,请按照支持 Vulkan 的步骤操作。当您同时选择 Support Vulkan 和 Support OpenGL ES 3.2 后,Unreal 默认使用 Vulkan。如果设备不支持 Vulkan,Unreal 会回退到 OpenGL ES 3.2。
如果您使用的是已知在某些设备上表现不佳的特定 Vulkan 功能,您可以自定义 BaseDeviceProfile.ini
文件以排除这些设备。如需了解如何对其进行自定义,请参阅为 Android 自定义设备配置文件和可扩缩性。请记得及时更新 BaseDeviceProfile.ini
文件。由于新的设备驱动程序可能会修复以前已知的不良设备,因此您不想错过可从更新的设备驱动程序中免费获得的优化。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Game engine support\n\nPopular multi-platform game engines have supported Vulkan for some time.\nHowever, due to varying levels of device support, these game engines have\nimplemented ways to allowlist good devices and denylist known bad devices.\n\nYou can start from these engines' default list and let the engine automatically\nuse Vulkan on supported devices and fall back to OpenGL ES for non-supported\ndevices.\n\nUnity\n-----\n\nTo enable automatic device selection on Unity, follow the steps to configure\n[Auto Graphics API](/games/engines/unity/start-in-unity#auto_graphics_api).\n\nUse the [VkQuality Unity engine plugin](/games/engines/unity/unity-vkquality) to\nprovide launch-time recommendations of the graphics API for your game to use on\na specific device.\n\nUnreal Engine\n-------------\n\nTo enable automatic device selection on Unreal Engine, follow the steps to\n[Support Vulkan](/games/engines/unreal/unreal-on-android#vulkan). When you\nselect both **Support Vulkan** and **Support OpenGL ES 3.2**, Unreal uses Vulkan\nby default. If the device doesn't support Vulkan, Unreal falls back to\nOpenGL ES 3.2.\n\nIf you are using specific Vulkan features that are known to behave badly on\ncertain devices, you can customize your `BaseDeviceProfile.ini` file to exclude those\ndevices. Check out [Customizing Device Profiles and Scalability for Android](https://dev.epicgames.com/documentation/en-us/unreal-engine/customizing-device-profiles-and-scalability-in-unreal-engine-projects-for-android#androiddeviceprofiles)\nto learn how to customize it. Remember to keep your `BaseDeviceProfile.ini` file\nupdated. As new device drivers may fix previously known bad devices, you do not\nwant to miss out on optimizations that you will get for free from the updated\ndevice drivers."]]