Version: 2023.1

Android

class in UnityEditor

切换到手册

描述

特定于 Android 的播放器设置。

静态变量

androidIsGamePublish the build as a game rather than a regular application. This option affects devices running Android 5.0 Lollipop and later.
androidTargetDevicesSelect which devices are allowed to run the Android application (all devices, mobile phones, tablets, and TV devices only, or ChromeOS devices only).
androidTVCompatibility提供与 Android TV 兼容的版本。
applicationEntryApplication entry classes to include.Note: You can specify multiple application entries for development purposes, this will cause two application icons to appear on Android device. You should always specify a single entry when publishing your app to a store.
ARCoreEnabled在支持的设备上启用对 Google ARCore 的支持。
blitType选择将内容绘制到屏幕的方式。
buildApkPerCpuArchitecture为每个 CPU 架构创建单独的 APK。
bundleVersionCodeAndroid 捆绑包版本代码。
chromeosInputEmulationUn-check to disable ChromeOS's default behaviour of converting mouse and touchpad input events into touchscreen input events.
defaultWindowHeightThe default vertical size of the Android Player window in pixels.
defaultWindowWidthThe default horizontal size of the Android Player window in pixels.
disableDepthAndStencilBuffers禁用深度和模板缓冲区。
enableArmv9SecurityFeaturesEnable Armv9 security features (PAC/BTI) for Arm64 builds.
forceInternetPermission强加 Internet 权限标志。
forceSDCardPermission强加 SD 卡权限。
fullscreenModeThe display mode for Android Player builds of your application.
keyaliasNameAndroid 密钥别名。
keyaliasPassAndroid 密钥别名密码。
keystoreNameAndroid 密钥库名称。
keystorePassAndroid 密钥库密码。
licenseVerification许可证验证标志。
maxAspectRatio应用程序支持的最大宽高比。
minifyDebugEnable to minify debug build.
minifyReleaseEnable to minify release build.
minimumWindowHeightThe minimum vertical size of the Android Player window in pixels.
minimumWindowWidthThe minimum horizontal size of the Android Player window in pixels.
minSdkVersion运行应用程序所需的最低 API 级别。
optimizedFramePacingEnable optimized frame pacing.
preferredInstallLocation首选的应用程序安装位置。
renderOutsideSafeArea利用所有可用的屏幕空间,将渲染布局扩展到显示屏凹口区域。
reportGooglePlayAppDependenciesIndicates whether to track application dependencies for Google Play Store verification.
resizableWindowIndicates whether Android Player build of your application support a resizable window.
showActivityIndicatorOnLoading应用程序应在加载时显示 ActivityIndicator。
splashScreenScaleAndroid 启动画面缩放模式。
splitApplicationBinarySplit application binary into modules.
startInFullscreen以全屏模式启动。
targetArchitectures一组用于 Android 构建目标的 CPU 架构。
targetSdkVersion应用程序的目标 API 级别。
textureCompressionFormatsTarget texture compression formats.
useCustomKeystore使用自定义密钥库启用应用程序签名。