Version: 2020.2
iOS Player settings - Debugging and crash reporting
iOS Player settings - XR settings

iOS Player settings - Other settings

You can configure a range of Player settingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary
in the Other Settings section. These options are organized into the following groups:

Rendering

Use these settings to customize how Unity renders your application for the iOSApple’s mobile operating system. More info
See in Glossary
platform.

Rendering Player settings for iOS platforms
Rendering Player settings for iOS platforms
Setting Function
Color Space Choose which color space Unity uses 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 set the graphics APIs. This option is enabled by default, and includes Metal
Color Gamut You can add or remove color gamuts for the iOS 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 recent iOS devices with wide color gamut displays, use DisplayP3 to utilize full display capabilities. Use Metal Editor Support as a fallback for older devices.
Metal Editor Support Enable this option to use the Metal API in the Unity Editor and unlock faster Shader iteration for targeting the Metal API.

Note: Checking or unchecking this option requires you to restart the Editor before the changes take effect.
Metal API Validation Enable this option when you need to debug Shader issues. This option only displays if the Metal Editor Support checkbox is selected.

Note: Validation increases CPU usage, so use it only for debugging.
Metal Write-Only Backbuffer Allow improved performance in non-default device orientation. This sets the frameBufferOnly flag on the back buffer, which prevents readback from the back buffer but enables some driver optimization.
Force hard shadows on Metal Enable this option to force Unity to use point sampling for shadows on Metal. This reduces shadow quality, which improves performance.
Memoryless Depth Choose when to use memoryless render textures. Memoryless Render Textures are temporarily stored in the on-tile memory when rendered, not in CPU or GPU memory. This reduces your app’s memory usage of your app, but you cannot read or write to these Render Textures.

Note: Memoryless Render Textures are only supported on iOS, tvOS 10.0+ Metal and Vulkan. On other platforms, Render Textures are read/write protected and stored in CPU or GPU memory.
Unused Never use memoryless framebuffer depth.
Forced Always use memoryless framebuffer depth.
Automatic Let Unity decide when to use memoryless framebuffer depth.
Multithreaded Rendering Enable this option to use multithreaded rendering.
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. For more information, see Draw call batching.
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 (enabled by default). For more information, see Draw call batching.

Note: Dynamic batching has no effect when a Scriptable Render Pipeline is active, so this setting is only visible if the Scriptable Render Pipeline Asset Graphics setting is blank.
Compute Skinning Enable this option to use Metal 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 might not deliver a performance improvement for your Project, and might introduce instability.

Unity currently only supports Graphics Jobs when using Vulkan and this setting has no effect when using OpenGL ES.
Normal Map Encoding Choose XYZ or DXT5nm-style to set the normal map 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 used for normal mapsA type of Bump Map texture that allows you to add surface detail such as bumps, grooves, and scratches to a model which catch the light as if they are represented by real geometry. More info
See in Glossary
. DXT5nm-style normal maps are of higher quality, but more expensive to decode in 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
.
Lightmap Encoding Choose Low Quality, Normal Quality, or High Quality to set the lightmapA 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
encoding. This setting affects the encoding scheme and compression format of the lightmaps.
Lightmap Streaming Enabled Enable this option to load only the lightmap mipmaps as needed to render the current Cameras. This value applies to the lightmap textures as they are generated.

Note: To use this setting, you must enable the Texture Streaming Quality setting.
Streaming Priority This option only displays when lightmap streaming is enabled. Set the lightmap mipmap streaming priority to resolve resource conflicts. As these values generate, Unity applies them to the light map textures.

Positive numbers give higher priority. Valid values range from –128 to 127.
Enable Frame Timing Stats Enable this option to gather CPU/GPU frame timing statistics.

Identification

Enter identifying information for your app.

Identification settings for iOS platforms
Identification settings for iOS platforms
Setting Function
Bundle Identifier Enter the provisioning profile of the application you are building. The basic structure of the identifier is com.CompanyName.ProductName. This structure might vary based on which country you live in, so always default to the string Apple provides to you for your Developer Account. Your ProductName is set up in your provisioning certificates.

This value appears as CFBundleIdentifier in the associated info.plist file. For more information, see the Apple developer documentation on CFBundleIdentifier.

Note: This setting affects iOS, tvOS, and Android.
Version Enter the release-version-number string for the bundle (for example, 4.3.6).

This value appears as CFBundleShortVersionString in the associated info.plist file. For more information, see Apple developer documentation on CFBundleShortVersionString.
BuildThe process of compiling your project into a format that is ready to run on a specific platform or platforms. More info
See in Glossary
Enter the build number for this version of your app.

This value appears as CFBundleVersion in the associated info.plist file. For more information, see Apple developer documentation on CFBundleVersion.
Signing Team ID Enter your Apple Developer Team ID. You can find this on the Apple Developer website under Xcode Help. This sets the Team ID for the generated Xcode project, allowing developers to use Build and Run functionality. You must enter an Apple Developer Team ID for automatic signing of your app.

For more information, see the Apple developer documentation on Creating Your Team Provisioning Profile.
Automatically Sign Enable this option to instruct Xcode to automatically sign your build.

Configuration

Configuration settings for iOS platforms
Configuration settings for iOS platforms

API configuration settings

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
The scripting backend determines how Unity compiles and executes C# code in your Project. This setting defaults to IL2CPP for iOS and can’t be changed.

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. For more information, see documentation on 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
.

C++ code generated by the IL2CPP scripting backend can be updated incrementally, which allows incremental C++ build systems to compile only the changed source files. This can significantly lower iteration times.
API Compatibility Level The compatibility level determines which .NET APIs you can use in your Project. This setting can affect compatibility with third-party libraries.

Tip: If you’re having problems with a third-party assembly, you can try the suggestions in the API Compatibility Level section below.
.Net Standard 2.0 Compatible with .NET Standard 2.0. Produces smaller builds and has full cross-platform support.
.Net 4.x Choose this option when using libraries that access APIs not included in .NET Standard 2.0. Compatible with the .NET Framework 4 (which includes everything in the .NET Standard 2.0 profile as well as additional APIs).

Produces larger builds and some of the additional APIs available might not be supported on all platforms. For more information, see documentation on Referencing additional class library assemblies.
C++ Compiler Configuration The C++ compiler configuration used when compiling IL2CPP generated code. This setting defaults to Release for iOS and can’t be changed.
Use incremental GC Use the incremental garbage collector, which spreads garbage collection over several frames to reduce garbage collection-related spikes in frame duration. For more information, see documentation on Automatic Memory Management.

API Compatibility Level

You can choose your mono API compatibility level for all targets. Sometimes a third-party .NET library uses functionality that is outside of your .NET compatibility level. If you’re on Windows, you can use the third-party software Reflector to understand what’s happening and how to fix it. Follow these steps:

  1. Install Reflector for Windows.
  2. Drag the .NET assemblies for the API compatibility level you are having issues with into Reflector. You can find these under Frameworks/Mono/lib/mono/YOURSUBSET/.
  3. Drag in your third-party assembly.
  4. Right-click your third-party assembly and select Analyze.
  5. In the analysis report, inspect the Depends on section. Anything that the third-party assembly depends on, but that is not available in the .NET compatibility level of your choice, is highlighted in red.

Apple-specific information

Setting Function
Camera Usage Description Enter the reason for accessing 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
on the iOS device.
Location Usage Description Enter the reason for accessing the location of the iOS device.
Microphone Usage Description Enter the reason for accessing the microphone on the iOS device.
Use on Demand Resource Enable this option to use on-demand resources.

When enabled, the Variant map for app slicing section appears.
Accelerometer Frequency Define how often to sample the accelerometer. You can set the frequency at 15Hz, 30Hz, 60Hz, or 100Hz. Alternatively, select Disbaled to ignore the accelerometer.
Mute Other Audio Sources Enable this option if you want your app to stop audio from other apps that run in the background. Otherise, background audio continues to play alongside your app.
Prepare iOS for Recording Enable this option to initialize the microphone recording APIs. This lowers recording latency, but it also re-routes iPhone audio output via earphones.
Force iOS Speakers when Recording Enable this option to send the phone’s audio output through the internal speakers, even when headphones are plugged in and recording.
Requires Persistent WiFi Enable this option to require a Wi-Fi connection. iOS maintains the active Wi-Fi connection while the app is running.
Allow downloads over HTTP (nonsecure) Enable this option to allow downloading content over HTTP. The default and recommended file transfer protocol protocol is HTTPS, which is more secure.
Supported URL schemes A list of supported URL schemes.

To add new schemes, increase the value of the Size property, then set a reference to the Asset to load in the new Element box that appears.

Device information

Setting Function
Disable HW Statistics Enable this option to instruct the app not to send information about the hardware to Unity.
Target Device Select which devices the app targets. The options are iPhone Only, iPad Only, and iPhone + iPad.
Target SDK Select which SDK the app targets. The options are Device SDK and Simulator SDK.

Note: Be sure to select the correct SDK. For example, if you select the Device SDK in Unity and target the Simulator in Xcode, your build will fail.
Target minimum iOS Version Select the minimum version of iOS that the app works on.
Enable ProMotion Support Enable this option to allow high frequency refresh rates (120 Hz) on ProMotion displays. This might cause your app to use more battery power.
Requires ARKit support Enable this option to restrict the app to iPhone 6s/iOS 11 or newer devices when you publish it to the App Store.
Automatically add capabilities When you enable this option, Unity generates an entitlements.plist file and adds capabiities for iOS APIs that your app implements (for example, Game Center or Notifications). For more information, see Apple developer documentation on Entitlements.
Defer system gestures on edges Select one or more edges that users must swipe twice to enact system gestures. The options are Top Edge, Left Edge, Bottom Edge, and Right Edge
Hide home button on iPhone X Enable this option to hide the home button on iPhone X devices when the app is running.
Render Extra Frame on Pause Enable this option to issue an additional frame after the frame when the app is paused. This allows your app to show graphics that indicate the paused state when the app goes into the background.
Enable Custom Background Behaviors Select what the app is allowed to do when the user presses the home button to send the app to the background. For an example, see the BackgroundFetch Bitbucket project. The options are:

- Audio, AirPlay, PiP,
- Location updates
- Voice over IP
- Newsstand downloads
- External accessory communication
- Uses Bluetooth LE accessories
- Act as a Bluetooth LE accessory
- Background fetch
- Remote notifications

Variant map for app slicing

Expand the Variant map for app slicing section to see the list of variant names configured in scripting. For more information on variants, see App slicing.

Note: If you don’t see the section, make sure the Use on Demand Resource property is enabled.

You can add and remove new variants with the plus (+) and minus (-) icons. You can also select a variant from the list and see or modify its settings under Variant settings. For any of these settings except Variant name, if you choose Custom value, an additional property appears underneath where you can enter your own value to use:

Setting Function
Variant name Displays the name of the variant from the loading script.
Device Choose which device this variant targets. Options include Any (default), iPhone, iPad, iWatch, and Custom value.
Memory Choose the minimum memory required for this variant. Options include Any (default), 1GB, 2GB, 3GB, 4GB, and Custom value.
Graphics Choose the Metal framework to use. Options include Any (default), Metal1v2, Metal2v2, Metal2v3, Metal3v1, Metal3v2, Metal4v1, and Custom value.

For more information, see the Apple developer documentation about Metal.
Display color space Choose the color gamut to use. Options include Any (default), sRGB, DisplayP3, and Custom value.

You can also add your own setting. Click the Add custom entry button and a new pair of text boxes appear:

  • <key>: Enter the name of the setting.
  • <value>: Enter the value for this setting.

Other configuration settings

Setting Function
Architecture Choose which architecture to target.
Universal Support all architectures. This is the recommended option.
Armv7 Support only the older 32-bit ARM architecture.
Arm64 Support only the newer 64-bit ARM architecture. You might want to consider selecting this option if your app is only for high-end devices.
Active Input Handling Choose how you want to handle input from users.
Input Manager (Old) Use the traditional Input settings.
Input System (New) Use the new 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.

Script Compilation

Script compilation settings for the iOS platform
Script compilation settings for the iOS platform
Setting Function
Scripting Define Symbols Set custom compilation flags. For more details, see the documentation on Platform dependent compilation.
Additional Compiler Arguments Add entries to this list to pass additional arguments to the Roslyn compiler. Use one new entry for each additional argument.
To create a new entry, press the ‘+’ button. To remove an entry, press the ‘-’ button.
When you have added all desired arguments, click the Apply button to include your additional arguments in future compilations.The Revert button resets this list to the most recent applied state.
Suppress Common Warnings Disable this setting to display the C# warnings CS0169 and CS0649.
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.
Use Deterministic Compilation Disable this setting to prevent compilation with the -deterministic C# flag. With this setting enabled, compiled assemblies are byte-for-byte identical each time they are compiled.
For more information, see Microsoft’s deterministic compiler option documentation.
Enable Roslyn Analyzers Disable this setting to compile user-written 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
without Roslyn analyzer DLLs that might be present in your project.
Use Roslyn Reference Assemblies Disable this setting to the compiler not to skip compilation reference assemblies when the metadata of the assembly does not change.

Optimization

Optimization settings for iOS platforms
Optimization settings for iOS platforms
Setting Function
Prebake 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
Meshes
Enable this option to add collision data to Meshes at build time.
Keep Loaded Shaders Alive Enable this option to prevent shaders 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, then set a reference to the Asset to load in the new Element box that appears.
AOT compilation options Additional options for Ahead of Time (AOT) compilation. This helps optimize the size of the built iOS player.
Strip Engine Code Enable this option if you want the Unity Linker tool to remove code for Unity Engine features that your Project doesn’t use. This setting is only available with the IL2CPP scripting backend.

Most apps don’t use every available DLL. This option strips out DLLs that your app doesn’t use to reduce the size of the built Player. If your app is using one or more classes that would normally be stripped out under your current settings, Unity displays a debug message when you try to build the app.
Managed Stripping Level Choose how aggressively Unity strips unused managed (C#) code.

When Unity builds your app, the Unity Linker process can strip unused code from the managed DLLs your Project uses. Stripping code can make the resulting executable significantly smaller, but can sometimes accidentally remove code that is in use. This setting allows you to choose how aggressively Unity should remove unused code.

The options available are Disabled, Low, Medium, and High. For more information about these options, see documentation on Managed code stripping.

For information about bytecode stripping with IL2CPP, see documentation on Managed bytecode stripping with IL2CPP.
Script Call Optimization Choose how to optionally disable exception handling for a speed boost at run time. For more information, see iOS Optimization.
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 app runs faster when using the Mono scripting backend).
Note: Using this option with the IL2CPP scripting backend doesn’t impact performance, but it might help 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. Global 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 settings for an imported Object override these settings.
Optimize Mesh Data Enable this option to remove any data from Meshes that isn’t required by the Material applied to them (such as tangents, normals, colors, and UVs).

Logging

Select what type of logging to allow in specific contexts.

Logging settings for iOS platforms
Logging settings for iOS platforms

Check one box that corresponds to each Log Type (Error, Assert, Warning, Log, and Exception) when running scripts (ScriptOnly) , all the time (Full), or never (None).

Legacy

Enable the Clamp BlendShapes (Deprecated) option to clamp the range of Blend Shape weights in SkinnedMeshRenderers. This option has been deprecated and should no longer be used.


  • GPU Skinning renamed to Compute Skinning in Unity 2019.3NewIn20193
  • OpenGLES2/3 deprecated in Unity 2019.3
  • OpenGLES2/3 removed in Unity 2020.1
iOS Player settings - Debugging and crash reporting
iOS Player settings - XR settings
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961