Version: 2023.1
言語: 日本語
Introducing Android
Android の Gradle

Android requirements and compatibility

Before you begin to develop an Android application in Unity, check Unity’s requirements and compatibility information for Android to make sure you’re aware of any limitations for developing a Unity application for this platform.

Android support

Unity supports Android 5.1 “Lollipop” (API level 22) and above. For more information, refer to AndroidSdkVersions.

Graphics API support

Android devices support Vulkan and OpenGL ES. This section contains information about the graphics APIs Unity supports for Android.

グラフィックス API サポート
Vulkan あり
OpenGL ES 1.0 なし
OpenGL ES 1.1 なし
OpenGL ES 2.0 なし
OpenGL ES 3.0 あり
OpenGL ES 3.1 あり
OpenGL ES 3.2 あり

レンダーパイプラインの互換性

Not every render pipeline is compatible with Android due to hardware and graphics API limitations.

機能 ビルトインレンダーパイプライン Universal Render Pipeline High Definition Render Pipeline Custom Scriptable Render Pipeline
Android あり あり なし あり

Manifest element attributes

This section contains compatibility information on Android App Manifest element attributes.

Emulator compatibility

Unity doesn’t support Android emulators. To test your application, you can:

Texture Compression

The standard texture compression formats on Android are Ericsson Texture Compression (ETC) and Adaptable Scalable Texture Compression (ASTC). To target the widest range of Android devices, use one of these texture compression formats. Unity’s default texture compression format is ASTC. If an Android device doesn’t support the texture compression format you use for a texture, Unity decompresses the texture at runtime. This increases memory usage and decreases rendering speed.

A subset of Android devices support the DXT and PVRTC texture compression formats. These formats support textures with an alpha channel as well as high compression rates or high image quality. For digital distribution services that filter content based on texture compression format, it is best practice to create separate builds of your application for each texture compression format.

There are two ways to change the default texture compression format for your application:

The value you set in Build Settings has priority over the one you set in Player Settings. Use it to change the texture compression format for a particular build.

You can also customize the texture compression format for individual textures. The value you set for an individual texture overrides the default texture compression format value. For information on how to change the texture format of individual textures, see Texture Importer.

Playing video files

This section provides additional information for playing video files on Android:

  • To play video files on Android, use the Video Player component. If your application tries to play a video file that the device doesn’t support, Unity doesn’t play the video.

  • You can use any resolution or number of audio channels so long as the target device supports them. Note: Not all devices support resolutions greater than 640 × 360.

  • Unity supports playback from uncompressed asset bundles. For Android Pie and above, Unity supports playback from compressed asset bundles.

  • Unity doesn’t support native webM/VP8 transparency. To play VP8-encoded webM clips with transparency, transcode the clips to a supported format.

  • In Android versions prior to 6.0.1, videos with transparency that have a higher resolution than the device support render pixels outside the supported resolution as white.

  • Unity reports format compatibility issues in the adb logcat output and prefixes them with AndroidVideoMedia. This file might display other device-specific error messages near the video format issues Unity reports. These device-specific errors aren’t visible to Unity and often explain what the compatibility issue is.

Introducing Android
Android の Gradle
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961