This page details the Player settings specific to the Android platform. For a description of the general Player settings, see the Player settings.
Documentation for the properties is grouped according to their respective sections in the Player UI(User Interface) Allows a user to interact with your application. More info
See in Glossary:
Property | Function |
---|---|
Adaptive | Set up textures for the Android Adaptive icons in your app. |
Round | Set up textures for the Android Round icons in your app. |
Legacy | Set up textures for the Android Legacy icons in your app. |
Enable Android Banner | Enables a custom banner for Android TV builds. |
Use the Resolution and Presentation section to customize aspects of the screen’s appearance.
Setting | Function |
---|---|
Start in fullscreen mode | Hide the navigation bar while the splash screen or first sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info See in Glossary loads. When not set, the navigation bar appears while the splash screen or first scene loads. |
Render outside safe area | Enable this option to allow rendering using all available screen space, including the display cutout (notch) area. For more information, see the display cutout support documentation on the Android developer website. |
Optimized Frame Pacing | Enable this option to allow Unity to evenly distribute frames for less variance in framerate, creating a smoother gameplay. |
Other Resolution and Presentation properties are grouped under these sections:
Setting | Function | |
---|---|---|
Resolution Scaling Mode | Allows you to set the scaling to be equal to or below the native screen resolution. | |
FixedDPI | Allows you to scale the device’s screen resolution below its native resolution and show the Target DPI property. Use this to optimize performance and battery life or target a specific DPI setting. | |
Disabled | Ensures that scaling is not applied and the game renders to its native screen resolution. | |
Target DPI | Set the resolution of the game screen. Unity downscales the game screen to match this setting if the device’s native screen DPI is higher than this value. The scale is calculated as min(Target DPI * Factor / Screen DPI, 1) . The Factor is controlled by the Resolution Scaling Fixed DPI Factor on the Quality settings.Note: This option only appears when the Resolution Scaling Mode is set to Fixed DPI. |
|
Blit Type | Controls whether a blitA shorthand term for “bit block transfer”. A blit operation is the process of transferring blocks of data from one place in memory to another. See in Glossary is used to render the final image to the screen. |
|
Always | (Always blit) Make Unity render to an offscreen buffer and then copy to the system framebuffer. This is compatible with most devices, but is usually slower than Never blitting. | |
Never | (Never blit) Make Unity render to the framebuffer provided by the OS. If a condition arises during application run time that causes this to fail, the application will print a one-time warning to the device log. Never blitting is usually faster than Always blitting, but it’s not compatible with all devices. | |
Auto | Make Unity render to the framebuffer provided by the OS, if possible. If a condition is met that prevents your application from rendering to the system framebuffer, the application switches to offscreen rendering and issues a warning to the device console. |
Set the Aspect Ratio Mode for the device. You can choose from Legacy Wide Screen (1.86), Native Aspect Ratio, and Custom. When you choose Custom, the Up To field appears.
Set a custom maximum screen width with the Up To property. This property is only available when Aspect Ratio Mode is set to Custom.
Choose the game’s screen orientation from the Default Orientation drop-down menu:
Setting | Function |
---|---|
Portrait | Home button appears at the bottom. |
Portrait Upside Down | Home button appears at the top. |
Landscape Left | Home button appears on the right side. |
Landscape Right | Home button appears on the left side. |
Auto Rotation | Allow the screen to automatically rotate to any of the orientations specified by the Allowed Orientations for Auto Rotation settings. This is the default. |
Note: This setting is shared between iOSApple’s mobile operating system. More info
See in Glossary and Android devices.
When you set the orientation to Auto Rotation, the Allowed Orientations for Auto Rotation section appears.
This section is only visible when Default Orientation is set to Auto Rotation.
Because Auto Rotation changes screen orientation to match the device, you may want to limit the screen orientations allowed (for example, locking a device to landscape).
Enable each orientation you want to allow by checking its box in this section:
Setting | Function |
---|---|
Portrait | Allow portrait orientation. |
Portrait Upside Down | Allow portrait upside-down orientation. |
Landscape Right | Allow landscape right orientation (home button on the left side). |
Landscape Left | Allow landscape left orientation (home button is on the right side). |
Setting | Function |
---|---|
Use 32-bit Display Buffer | Enable this option to create a Display Buffer to hold 32-bit color values (16-bit by default). Use it if you see banding, or need alpha in your post-processed effects, because they create Render TexturesA special type of Texture that is created and updated at runtime. To use them, first create a new Render Texture and designate one of your Cameras to render into it. Then you can use the Render Texture in a Material just like a regular Texture. More info See in Glossary in the same format as the Display Buffer. |
Disable Depth and Stencil | Enable this option to disable the depth and stencil buffersA memory store that holds an 8-bit per-pixel value. In Unity, you can use a stencil buffer to flag pixels, and then only render to pixels that pass the stencil operation. More info See in Glossary. |
Render Over Native UI | Enable this option if you want Unity to render on top of native UI on Android or iOS. The cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info See in Glossary’s Clear Flags have to be set to Solid color with an alpha less than 1 for this to have any effect. |
Show Loading Indicator | Select how the loading indicator should appear. The options are Don’t Show, Large, Inversed Large, Small and Inversed Small. |
Above the common Splash Screen settings, you can use the Virtual Reality Splash Image setting to specify a custom splash image for Virtual RealityA system that immerses users in an artificial 3D world of realistic images and sounds, using a headset and motion tracking. More info
See in Glossary displays.
Below the common Splash Screen settings, you can set up an Android-specific Static Splash Image.
Use the Android Splash Screen property to specify the texture that should be used for the Android splash screen. The standard size for the splash screen image is 320x480.
Choose how you want Unity to scale the splash image to fit the device’s screen from the Splash Scaling drop-down menu. The options are:
This section allows you to customize a range of options organized into the following groups:
Use these settings to customize how Unity renders your game for the Android platform.
Property | Function |
---|---|
Color Space | Choose which color space should be used for rendering: Gamma or Linear. See the Linear rendering overview for an explanation of the difference between the two. |
Auto Graphics API | Disable this option to manually pick and reorder the graphics APIs from the Open Graphics Library (OpenGL). By default this option is enabled, and Unity tries GLES3.2. If the device doesn’t support GLES3.2, Unity falls back to GLES3.1, GLES3 or GLES2. If only GLES3 is in the list, additional checkboxes appear: Require ES3.1, Require ES3.1+AEP and Require ES3.2. These allow you to force the corresponding graphics API. Important: Unity adds the GLES3/GLES3.1/AEP/3.2 requirement to your Android manifest only if GLES2 is not in the list and the Minimum API Level is set to JellyBean (API level 18) or higher. In this case only, your application does not appear on unsupported devices in the Google Play Store. |
Color Gamut | You can add or remove color gamuts for the Android platform to use for rendering. Click the plus (+) icon to see a list of available gamuts. A color gamut defines a possible range of colors available for a given device (such as a monitor or screen). The sRGB gamut is the default (and required) gamut. When targeting devices with wide color gamut displays, use DisplayP3 to utilize full display capabilities. |
Multithreaded Rendering | Enable this option to move graphics API calls from Unity’s main thread to a separate worker thread. This can help to improve performance in applications that have high CPU usage on the main thread. |
Static BatchingA technique Unity uses to draw GameObjects on the screen that combines static (non-moving) GameObjects into big Meshes, and renders them in a faster way. More info See in Glossary |
Enable this option to use Static batching on your build (enabled by default). |
Dynamic BatchingAn automatic Unity process which attempts to render multiple meshes as if they were a single mesh for optimized graphics performance. The technique transforms all of the GameObject vertices on the CPU and groups many similar vertices together. More info See in Glossary |
Enable this option to use Dynamic Batching on your build (enabled by default). Note: Dynamic batching has no effect when a Scriptable Render Pipeline is active, so this setting is visible only when no Scriptable Render Pipeline asset is set in Graphics Settings. |
GPU Skinning | Enable this option to use OpenGL ES 3 GPU compute skinningThe process of binding bone joints to the vertices of a character’s mesh or ‘skin’. Performed with an external tool, such as Blender or Autodesk Maya. More info See in Glossary, which frees up CPU resources. To learn more about GPU compute skinning, see the Wikipedia page on skeletal animation. |
Graphics Jobs (Experimental) | Enable this option to instruct Unity to offload graphics tasks (render loops) to worker threads running on other CPU cores. This reduces the time spent in Camera.Render on the main thread, which is often a bottleneck. Note: This feature is experimental. It may not deliver a performance improvement for your project, and may introduce instability. Unity currently only supports Graphics Jobs when using Vulkan and this setting has no effect when using OpenGL ES. |
Lightmap Encoding | Choose Low Quality, Normal Quality, or High Quality to set the lightmap encoding. This setting affects the encoding scheme and compressionA method of storing data that reduces the amount of storage space it requires. See Texture Compression, Animation Compression, Audio Compression, Build Compression. See in Glossary format of the lightmapsA pre-rendered texture that contains the effects of light sources on static objects in the scene. Lightmaps are overlaid on top of scene geometry to create the effect of lighting. More info See in Glossary. |
Lightmap Streaming Enabled | Enable this option to load only the lightmap mipmaps when needed. To render the current game Cameras, Unity applies this value to the lightmap textures when it generates the textures. Note: To use this value, enable the Texture Streaming Quality setting. |
Streaming Priority | Define the lightmap mipmap streaming priority when there’s contention for resources. The valid range is –127 to 128, where a positive number represents higher priority. This setting is only available when Lightmap Streaming Enabled is checked. To use this value, enable the Texture Streaming Quality setting. |
Protect Graphics Memory | Check this box to force the graphics buffer to be displayed only through a hardware-protected path. Works only on devices which support it. |
Enable Frame Timing Stats | Gather statistics on how much time a frame takes on the CPU and GPU. |
Enable the SRGB Write Mode option to allow Graphics.SetSRGBWrite() on Vulkan renderer to toggle the sRGB write mode during the frame.
Note: Enabling this feature may reduce performance, especially for tiled GPUs.
Setting | Function | |
---|---|---|
Scripting BackendA framework that powers scripting in Unity. Unity supports three different scripting backends depending on target platform: Mono, .NET and IL2CPP. Universal Windows Platform, however, supports only two: .NET and IL2CPP. More info See in Glossary |
Choose the scripting backend you want to use. The scripting backend determines how Unity compiles and executes C# code in your Project. | |
Mono | Compiles C# code into .NET Common Intermediate Language (CIL) and executes that CIL using a Common Language Runtime. See the Mono Project website for more information. | |
IL2CPP | Compiles C# code into CIL, converts the CIL to C++ and then compiles that C++ into native machine code, which executes directly at run time. See IL2CPPA Unity-developed scripting back-end which you can use as an alternative to Mono when building Projects for some platforms. More info See in Glossary for more information. |
|
API Compatibility Level | Choose which .NET APIs can be used in your project. This setting can affect compatibility with 3rd-party libraries. Tip: If you are having problems with a third-party assembly, you can try the suggestion in the API Compatibility Level section below. |
|
.Net 2.0 | .Net 2.0 libraries. Maximum .net compatibility, biggest file sizes. Part of the deprecated .NET 3.5 runtime. | |
.Net 2.0 Subset | Subset of full .net compatibility, smaller file sizes. Part of the deprecated .NET 3.5 runtime. | |
.Net Standard 2.0 | Compatible with .NET Standard 2.0. Produces smaller builds and has full cross-platform support. | |
.Net 4.x | Compatible with the .NET Framework 4 (which includes everything in the .NET Standard 2.0 profile as well as additional APIs). Choose this option when using libraries that access APIs not included in .NET Standard 2.0. Produces larger builds and any additional APIs available are not necessarily supported on all platforms. See Referencing additional class library assemblies for more information. | |
C++ Compiler Configuration | Choose the C++ compiler configuration used when compiling IL2CPP generated code. Note: This property is disabled unless Scripting Backend is set to IL2CPP. |
|
Use incremental GC | Use the incremental garbage collector, which spreads garbage collection over several frames to reduce gc-related spikes in frame duration. | |
Mute Other Audio Sources | Enable this option if you want your Unity application to stop Audio from applications running in the background. Otherwise, Audio from background applications continues to play alongside your Unity application. | |
Disable HW Statistics | Enable this option to instruct the application not to send information about the hardware to Unity. By default, Unity Android applications send anonymous HW statistics to Unity. This provides you with aggregated information to help you make decisions as a developer. | |
Target Architectures | Select which CPUs you want to allow the application to run on (32-bit ARM, 64-bit ARM, and 32-bit Intel). Note: Running Android apps in a 64-bit environment has performance benefits and 64-bit apps can address more than 4 GB of memory space. |
|
Split APKs__ by target architecture (Experimental)__ | Enable this option to create a separate APK for each CPU architecture selected in Target Architectures. This makes download size smaller for Google Play Store users. This is primarily a Google Play store feature and may not work in other stores. For more details, refer to Multiple APK Support. | |
Install Location | Specifies application install location on the device (for detailed information, refer to Android Developer documentation on install locations. | |
Automatic | Let the operating system decide. User will be able to move the app back and forth. | |
Prefer External | Install the application to external storage (SD card) if possible. The operating system does not guarantee it; if not possible, the app will be installed to internal memory. | |
Force Internal | Force the application to be installed to internal memory. The user will be unable to move the app to external storage. | |
Internet Access | Choose whether to always add the networkingThe Unity system that enables multiplayer gaming across a computer network. More info See in Glossary ( INTERNET ) permission to the Android manifest, even if you are not using any networking APIs. Set to Require by default for development buildsA development build includes debug symbols and enables the Profiler. More infoSee in Glossary. |
|
Auto | Only add the internet access permission if you are using a networking API. | |
Require | Always add the internet access permission. | |
Write Permission | Choose whether to enable write access to the external storage (such as the SD card) and add a corresponding permission to the Android manifest. Set to External(SDCard) by default for development builds. | |
Internal | Only grant write permission to internal storage. | |
External(SDCard) | Enable write permission to external storage. | |
Filter Touches When Obscured | Enable this option to discard touches received when another visible window is covering the Unity application. This is to prevent tapjacking. | |
Sustained Performance Mode | Enable this option to set a predictable and consistent level of device performance over longer periods of time, without thermal throttling. Overall performance might be lower when this setting is enabled. Based on the Android Sustained Performance API. | |
Maximum Java Heap Size | Set the maximum Java heap size to user for building (in megabytes). Defaults to 4096. | |
Low Accuracy Location | Enable this option to use low accuracy values with Android location APIs instead. | |
Android TV Compatibility | Enable this option to mark the application as Android TV compatible. | |
Android Game | Enable this option to mark the output package (APK) as a game rather than a regular application. | |
Android Gamepad Support Level | Choose the level of support your application offers for a gamepad. The options are Works with D-Pad, Supports Gamepad, and Requires Gamepad. | |
Warn about App Bundle size | Enable this option to receive a warning when the size of the Android App Bundle exceeds a certain threshold. This option is selected by default and you can only configure it if you enable the Build App Bundle (Google Play) option in the Build settings. | |
App Bundle size threshold | Enter a size in Mb. When your App Bundle exceeds this size, Unity will display a warning. | |
Scripting Define Symbols | Set custom compilation flags. For more details, see Platform dependent compilation. | |
Allow ‘unsafe’ Code | Enable support for compiling ‘unsafe’ C# code in a pre-defined assembly (for example, Assembly-CSharp.dll ). For Assembly Definition Files ( .asmdef ), click on one of your .asmdef files and enable the option in the Inspector window that appears. |
|
Active Input Handling | Choose how you want to handle input from users. | |
Input Manager | Use the traditional Input settings. | |
Input System (Preview) | Use the newer Input system. The Input System is provided as a preview packageA preview package is in development and not yet ready for production. A package in preview might be at any stage of development, from the initial stages to near completion. See in Glossary for this release. To try a preview of the Input System, install the InputSystem package. |
|
Both | Use both systems side by side. |
You can choose your mono API compatibility level for all targets. Sometimes a 3rd-party .NET library uses functionality that is outside of your .NET compatibility level. In order to understand what is going on in such cases, and how to best fix it, try following these suggestions:
Frameworks/Mono/lib/mono/YOURSUBSET/
.Setting | Function | |
---|---|---|
Prebake Collision Meshes | Enable this option to add collisionA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a rigidbody component and is in motion. More info See in Glossary data to Meshes at build time. |
|
Keep Loaded Shaders Alive | Enable this option to prevent shadersA small script that contains the mathematical calculations and algorithms for calculating the Color of each pixel rendered, based on the lighting input and the Material configuration. More info See in Glossary from being unloaded. |
|
Preloaded Assets | Set an array of Assets for the player to load on startup. To add new Assets, increase the value of the Size property and then set a reference to the Asset to load in the new Element box that appears. |
|
Strip Engine Code (IL2CPP only) | Specify whether the Unity Linker tool removes code for Unity Engine features that your Project does not use. | |
Managed Stripping Level | Defines how aggressively Unity strips unused managed (C#) code. When Unity builds your game or application, the Unity Linker process can strip unused code from the managed dynamically linked libraries used in the project. Stripping code can make the resulting executable significantly smaller, but can sometimes mistakenly remove code that is actually used. This setting allows you to choose how aggressively Unity should remove unused code. |
|
Disabled (Mono only) | Do not strip any code. (Managed code stripping is always enabled when using IL2CPP.) | |
Normal | Remove unreachable managed code to reduce build size and Mono/IL2CPP build times. | |
Aggressive (Experimental) | Remove code more aggressively than under the Normal option. Code size is further reduced, but this additional reduction may have side effects. For example, some methods may no longer be visible in the debugger and code accessed through reflection can be stripped. You can create a custom link.xml file to preserve specific classes and methods. See Managed bytecode stripping with IL2CPP for more information. | |
Enable Internal profilerA window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating or in your game logic. More info See in Glossary (Deprecated) |
Enable this option to get the profiler data from your device in the Android SDK’s adblogcat output while testing your projects. This is only available in development builds. | |
Script Call Optimization | Choose how to optionally disable exception handling for a speed boost at runtime. See iOS Optimization for details. | |
Slow and Safe | Use full exception handling (with some performance impact on the device when using the Mono scripting backend). | |
Fast but no Exceptions | No data provided for exceptions on the device (the game runs faster when using the Mono scripting backend). Note: Using this option with the IL2CPP Scripting Backend does not impact performance; however, using it can avoid undefined behavior on release builds. |
|
Vertex Compression | Set vertex compression per channel. For example, you can enable compression for everything except positions and lightmap UVs. Whole MeshThe main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. More info See in Glossary compression set per imported object overrides where vertex compression is set on objects. Everything else obeys these vertex compression settings. |
|
Optimize Mesh Data | Enable this option to remove any data from Meshes that is not required by the Material applied to them (such as tangents, normals, colors, and UVs). |
Select what type of logging to allow in specific contexts.
Check one box that corresponds to each Log Type (Error, Assert, Warning, Log, and Exception) when running scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary (ScriptOnly) , all the time (Full), or never (None).
Enable the Clamp BlendShapes (Deprecated) option to clamp the range of blend shape weights in SkinnedMeshRenderers.
Use these settings to customize building your Android app.
Note: For security reasons, Unity does not save the passwords on this page. The unsigned debug keystore is located by default at ~/.android/debug.keystore
on MacOS and %USERPROFILE%\\.android\debug.keystore
on Windows.
To use an existing KeystoreAn Android system that lets you store cryptographic key entries for enhanced device security. More info
See in Glossary:
Alternatively, you can create a new one:
Select your key from the Alias drop-down menu.
Once selected, you can enter your Password.
Enable the Custom Gradle Template to customize the Gradle build process by providing your own changes to the Gradle build file, located here:Assets/Plugins/Android/mainTemplate.gradle
.
Enable the User Proguard File to use a Proguard file to shrink and optimize your app. For more information, see Gradle for Android. This file is located here:Assets/Plugins/Android/proguard-user.txt
Specify whether you want to use Proguard or Gradle (Experimental) for minification, or None at all. Choose one of these options from the Release and Debug drop-down menus.
Enable the Split Application Binary option to split your output package into main (APK) and expansion (OBB) packages. This is required to publish applications larger than 100 MBytes to Google Play Store.
Setting | Function | |
---|---|---|
Virtual Reality Supported | Enable this if your application is a virtual reality application, then add the required VR SDKs to the list. | |
Virtual Reality SDKs | Add and remove Virtual Reality SDKs from the list. This list is only available when the Virtual Reality Supported is enabled. To add an SDK to the list, click the plus (+) button. To remove an SDK from the list, select it and then click the minus (-) button. Some of the SDKs provide extra settings that appear here. For details, see XR SDKs. |
|
Stereo Rendering Mode | Choose how you want to render for a virtual reality device. | |
Multi Pass | This is the normal rendering modeA Standard Shader Material parameter that allows you to choose whether the object uses transparency, and if so, which type of blending mode to use. More info See in Glossary. Unity renders the Scene twice: first to render the left-eye image; and then again for the right-eye image. |
|
Single Pass Multiview or Instanced (Preview) | Render both eye images at the same time into one packed Render Texture. This means that the whole Scene is only rendered once, which significantly reduces CPU processing time. | |
ARCore | Enable this option to use Google’s ARCore platform. | |
Vuforia Augmented Reality Supported | Enable this option to use Vuforia Augmented Reality SDK, which is required when using the Vuforia Virtual Reality SDK. |
You can click the Vuforia Augmented Reality link to enable the Vuforia Software Development Kit. You must have a Vuforia Software License and agree to the terms of that license before the Vuforia Augmented Reality Supported property is enabled.
2018–11–28 Page amended
Updated features in 5.5
Sustained Performance Mode added in 2017.3
.NET 4.x runtime added in 2018.1
Android Multiple APK features added in 2018.2
OpenGL ES 3.2 support for Android added in 2019.1 NewIn20191
Render outside safe area added in Unity 2019.1
Warn about App Bundle size option added in Unity 2019.2
Did you find this page useful? Please give it a rating: