Version: 2022.2
언어: 한국어
macOS
macOS development

macOS player settings

This page details the Player settings specific to macOS. For a description of the general Player settings, refer to Player Settings.

프로퍼티 관련 문서는 다음 섹션에서 확인하십시오.

아이콘(Icon)

Activate the Override for Windows, Mac, Linux setting to assign a custom icon for your desktop game. You can upload different sizes of the icon to fit each of the squares provided.

해상도 및 프레젠테이션

Resolution and Presentation 섹션에서 화면이 표시되는 모양에 대해 다음을 커스터마이즈할 수 있습니다.

해상도

이 섹션에서는 스크린 모드와 기본 크기를 커스터마이즈할 수 있습니다.

프로퍼티 설명
Fullscreen Mode 전체 화면 모드를 선택합니다. 이 옵션은 시작 시 기본 창 모드를 정의합니다.
Fullscreen Window Set your app window to the full-screen native display resolution, covering the whole screen. This mode is also known as borderless full-screen. Unity renders the app content at the resolution set by a script, or the native display resolution if none is set and scales it to fill the window. When scaling, Unity adds black bars to the rendered output to match the display aspect ratio to prevent content stretching. This process is called letterboxing. The OS overlay UI displays on top of the full-screen window (such as IME input windows). All platforms support this mode.
Exclusive Fullscreen (Windows only) Set your app to maintain sole full-screen use of a display. Unlike Fullscreen Window, this mode changes the OS resolution of the display to match the app’s chosen resolution. This option is only supported on Windows.
Maximized Window (Mac only) Set the app window to the operating system’s definition of maximized, which is typically a full-screen window with a hidden menu bar and dock on macOS. This option is only supported on macOS. Fullscreen Window is the default setting for other platforms.
Windowed Set your app to a standard, non-full-screen movable window, the size of which is dependent on the app resolution. In this mode, the window is resizable by default. Use the Resizable Window setting to disable this. All desktop platforms support this full-screen mode.
Default Is Native Resolution Enable this option to make the game use the default resolution used on the target machine. This option isn’t available if the Fullscreen Mode is set to Windowed.
Default Screen Width 게임 화면의 기본 너비(단위: 픽셀)를 설정합니다. 이 옵션은 Fullscreen ModeWindowed 로 설정된 경우에만 사용할 수 있습니다.
Default Screen Height 게임 화면의 기본 높이(단위: 픽셀)를 설정합니다. 이 옵션은 Fullscreen ModeWindowed 로 설정된 경우에만 사용할 수 있습니다.
Mac Retina Support Enable this option to enable support for high DPI (Retina) screens on a Mac. Unity enables this by default. This enhances Projects on a Retina display, but it’s somewhat resource-intensive when active.
Run In background 앱이 포커스를 잃는 경우 게임을 일시 정지하지 않고 백그라운드에서 게임을 실행하려면 이 옵션을 활성화합니다.

스탠드얼론 플레이어 옵션

Use this section to specify the settings to customize the screen. For example, you can set options for users to resize the screen and specify the number of instances that can run concurrently.

프로퍼티 설명
Capture Single Screen Activate this option so that standalone games in Fullscreen Mode don’t darken the secondary monitor in multi-monitor setups. This option isn’t supported on macOS.
Use Player Log Activate this option to write a log file with debugging information.
Warning: If you plan to submit your application to the Mac App Store, leave this option deactivated. For more information, refer to Publishing to the Mac App Store.
Resizable Window Activate this option to allow resizing of the desktop player window.
Note: If you deactivate this option, your application can’t use the Windowed Fullscreen Mode.
Visible in Background Activate this option to display the application in the background when using Windowed Fullscreen Mode. This option isn’t supported on macOS.
Allow Fullscreen Switch Activate this option to allow default OS full-screen key presses to toggle between full-screen and windowed modes.
Force Single Instance Activate this option to restrict desktop players to a single concurrent running instance.
Use DXGI flip model swap chain for D3D11 Using the flip model ensures the best performance. This setting affects the D3D11 graphics API. Deactivate this option to fall back to the Windows 7-style BitBlt model. For more information, refer to PlayerSettings.useFlipModelSwapchain.

스플래시 이미지(Splash Image)

Use the Virtual Reality Splash Image setting to select a custom splash image for Virtual Reality displays. For information on common Splash Screen settings, refer to Splash Screen.

기타 설정

렌더링(Rendering)

다음 설정을 사용하여 Unity가 데스크톱 플랫폼을 위한 게임을 렌더링하는 방법을 커스터마이즈합니다.

Property Description
Color Space Choose which color space to use for rendering: Gamma or Linear. For more information, refer to Linear rendering overview.
Gamma Gamma color space is typically used for calculating lighting on older hardware restricted to 8 bits per channel for the framebuffer format. Even though monitors today are digital, they might still take a gamma-encoded signal as input.
Linear Linear color space rendering gives more precise results. When you select to work in linear color space, the Editor defaults to using sRGB sampling. If your Textures are in linear color space, you need to work in linear color space and deactivate sRGB sampling for each Texture.
Auto Graphics API for Windows 게임을 실행하는 Windows 컴퓨터의 최적 그래픽스 API를 사용하려면 이 옵션을 활성화합니다. 지원되는 그래픽스 API를 추가하고 제거하려면 이 옵션을 비활성화합니다.
Auto Graphics API for Mac 게임을 실행하는 Mac 컴퓨터의 최적 그래픽스 API를 사용하려면 이 옵션을 활성화합니다. 지원되는 그래픽스 API를 추가하고 제거하려면 이 옵션을 비활성화합니다.
Auto Graphics API for Linux Linux 컴퓨터에서 실행하는 최적 그래픽스 API를 사용하려면 이 옵션을 활성화합니다. 지원되는 그래픽스 API를 추가하고 제거하려면 이 옵션을 비활성화합니다.
Color Gamut for Mac You can add or remove color gamuts for the Mac platform to use for rendering. Click the plus (+) icon to display 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.
Static Batching Use Static batching. For more information, refer to Draw call batching.
Dynamic Batching Use dynamic batching (enabled by default). For more information, refer to 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.
Sprite Batching Threshold Controls the maximum vertex threshold used when batching.
GPU Compute Skinning Use shaders to calculate mesh skinning and blend shapes on the GPU.
Graphics Jobs Offloads graphics tasks (render loops) to worker threads running on other CPU cores. This option reduces the time spent in Camera.Render on the main thread, which can be a bottleneck.
Lightmap Encoding Defines the encoding scheme and compression format of the lightmaps.
You can choose from Low Quality, Normal Quality, or High Quality.
HDR Cubemap Encoding Defines the encoding scheme and compression format of the HDR Cubemaps.
You can choose from Low Quality, Normal Quality, or High Quality.
Lightmap Streaming Uses Mipmap Streaming for lightmaps. Unity applies this setting to all lightmaps when it generates them.

Note: To use this setting, you must enable the Texture Streaming Quality setting.
Streaming Priority Sets the priority for all lightmaps in the Mipmap Streaming system. Unity applies this setting to all lightmaps when it generates them.
Positive numbers give higher priority. Valid values range from –128 to 127.
Frame Timing Stats Allows Unity to gather CPU/GPU frame timing statistics. Use this option with the Dynamic Resolution camera setting to determine if your application is CPU or GPU bound.
OpenGL: Profiler GPU Recorders Enable profiler recorders when rendering with OpenGL.
Use display in HDR mode Activate HDR mode output when the application runs. This only works on displays that support this feature. If the display doesn’t support HDR mode, the game runs in standard mode.
Swap Chain Bit Depth Selects the number of bits in each color channel for swap chain buffers. You can select Bit Depth 10 or Bit Depth 16. The option to choose bit depth only becomes available when you enable HDR Mode.

For more information on bit depth, refer to the Scripting API page for D3DHDRDisplayBitDepth.
Bit Depth 10 Unity will use the R10G10B10A2 buffer format and Rec2020 primaries with ST2084 PQ encoding.
Bit Depth 16 Unity will use the R16G16B16A16 buffer format and Rec709 primaries with linear color (no encoding).
Virtual Texturing (Experimental) Enable this option to reduce GPU memory usage and texture loading times if your Scene has many high resolution textures. For more information, refer to Virtual Texturing.

Note: The Unity Editor requires a restart for this setting to take effect.
360 Stereo Capture Allows Unity to capture stereoscopic 360 images and videos. When enabled, Unity compiles additional shader variants to support 360 capture (only on Windows). When enabled, the enable_360_capture keyword is added during the Stereo RenderCubemap call. This keyword isn’t triggered outside the Stereo RenderCubemap function.

For more information, refer to Stereo 360 Image and Video Capture.
Load/Store Action Debug Mode Highlights undefined pixels that might cause rendering problems in your built application. The highlighting appears only in the Game view, and your built application if you select Development Build in Build Settings. For more information, refer to LoadStoreActionDebugModeSettings.
Editor Only Highlights undefined pixels in the Game view, but not in your built application.

Vulkan 설정

프로퍼티 설명
SRGB Write Mode 런타임 동안 Graphics.SetSRGBWrite() 렌더러가 sRGB 쓰기 모드를 토글할 수 있도록 허용하려면 이 옵션을 활성화합니다. 즉 Linear-to-sRGB 쓰기 색상 전환을 일시적으로 끄고자 할 경우 이 프로퍼티를 사용하면 됩니다. 이 프로퍼티를 활성화하면 모바일 타일 기반 GPU의 성능에 부정적인 영향을 주므로 모바일에서는 활성화하면 안 됩니다.
Number of swapchain buffers 이중 버퍼링에 대해 이 옵션을 2로 설정하거나 Vulkan 렌더러를 함께 사용하려면 삼중 버퍼링에 대해 3으로 설정합니다. 이 설정은 일부 플랫폼의 지연에 도움이 될 수는 있지만 대부분의 경우 기본값인 3에서 변경해선 안 됩니다. 이중 버퍼링은 성능에 부정적인 영향을 줄 수 있습니다. Android에서는 이 설정을 사용하면 안 됩니다.
Acquire swapchain image late as possible 활성화된 경우 Vulkan은 프레임을 오프스크린 이미지로 렌더링한 후가 될 때까지 백버퍼 획득을 지연합니다. Vulkan은 이를 위해 스테이징 이미지를 사용합니다. 이 설정을 활성화하면 백버퍼를 표시할 때 추가 blit이 발생합니다. 이 설정은 이중 버퍼링과 조합하여 사용하면 성능을 향상시킬 수 있습니다. 하지만 추가 blit이 대역폭을 차지하기 때문에 성능 문제를 일으킬 수도 있습니다.
Recycle command buffers Unity에서 CommandBuffers를 실행한 후 재활용할지 해제할지 여부를 나타냅니다.

Mac 앱 스토어 옵션

프로퍼티 설명
Override Default Bundle Identifier Indicates whether you can manually set the bundle identifier.

Note: This setting affects macOS, iOS, tvOS, and Android.
Bundle Identifier Enter the Bundle Identifier of your application. This appears as CFBundleIdentifier in the associated info.plist file. The Bundle Identifier must follow the convention com.YourCompanyName.YourProductName and must contain only alphanumeric and hyphen characters. For more information, refer to CFBundleIdentifier.

Important: Unity automatically replaces any invalid characters you type with a hyphen.
Build Enter the build number for this version of your app. This appears as CFBundleVersion in the associated info.plist file. Refer to the Apple developer documentation on CFBundleVersion to learn more.
카테고리 Enter the string corresponding to the app’s type. The App Store uses this string to select the appropriate categorization for the app. By default, this is public.app-category.games. Refer to the Apple developer documentation on LSApplicationCategoryType to check the list of category types available.
Mac App Store Validation Activate this so that your app only runs when it has a valid receipt from the Mac App Store. This prevents people from running the game on a different device. Only deactivate this setting if you have implemented your own receipt validation.

Mac 앱 스토어에 퍼블리싱

The Use Player Log property creates a log file with debugging information, helping to investigate any problems with your game. Deactivate this when publishing games for Apple’s Mac App Store, as Apple can reject your submission if activated. Refer to the Unity Manual Log Files page for further information about log files.

The Use Mac App Store Validation property activates receipt validation for the Mac App Store. If activated, your game only runs when it has a valid receipt from the Mac App Store. Use this when submitting games to Apple for publishing on the App Store. This prevents people from running the game on a different computer.

Note: This feature doesn’t implement any strong copy protection. In particular, any potential crack for one Unity game can work for any other Unity content. For this reason, it’s recommended that you implement your own receipt validation code on top of this, using Unity’s plug-in feature. Because Apple requires plug-in validation to initially happen before showing the screen setup dialog, it’s recommended to activate this property to avoid Apple rejecting your submission.

설정


Property Description
Scripting Backend 사용할 스크립팅 백엔드를 선택합니다. 스크립팅 백엔드는 Unity가 프로젝트의 C# 코드를 컴파일하고 실행하는 방식을 결정합니다.
Mono Compiles C# code into .NET Common Intermediate Language (CIL) and executes that CIL using a Common Language Runtime. For more information, refer to the Mono page.
IL2CPP Compiles C# code into CIL, converts the CIL to C++ and then compiles that C++ into native machine code, which executes directly at runtime. Refer to IL2CPP for more information.
API Compatibility Level Choose which .NET APIs you can use in your project. This setting can affect compatibility with third-party libraries. However, it has no effect on Editor-specific code (code in an Editor directory, or within an Editor-specific Assembly Definition).

Tip: If you are having problems with a third-party assembly, you can try the suggestion in the API Compatibility Level section below.
.Net Standard 2.1 Compatible with .NET Standard 2.1. Produces smaller builds and has full cross-platform support.
.Net Framework Compatible with the .NET Framework 4 (which includes everything in the .NET Standard 2.0 profile plus 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 aren’t necessarily supported on all platforms. Refer to Referencing additional class library assemblies for more information.
IL2CPP Code Generation Defines how Unity manages IL2CPP code generation. This option is only available if you use the IL2CPP scripting backend.
Faster runtime Generates code optimized for runtime performance. This setting is activated by default.
Faster (smaller) builds Generates code optimized for build size and iteration. This setting generates less code and produces a smaller build, but can reduce runtime performance for generic code. Use this option when faster build times are important, such as when iterating on changes.
C++ Compiler Configuration IL2CPP에 의해 생성된 코드를 컴파일할 때 사용할 C++ 컴파일러 설정을 선택합니다.
참고: 이 프로퍼티는 Scripting BackendIL2CPP 로 설정하지 않는 경우 비활성화됩니다.
Use incremental GC Uses the incremental garbage collector, which spreads garbage collection over several frames to reduce garbage collection-related spikes in frame duration. For more information, refer to Automatic Memory Management.
Allow downloads over HTTP Indicates whether to allow downloading content over HTTP. The options are Not allowed, Allowed in Development builds only, and Always allowed. The default option is Not allowed due to the recommended protocol being HTTPS, which is more secure.
Active Input Handling Choose how to handle input from users.
Input Manager (old) Use the default Input window.
Input System Package (New) Use the newer Input system. To try the new Input System, install the InputSystem package.
Both Use both systems side by side.

API compatibility level

You can choose your mono API compatibility level for all targets. Sometimes a third-party .NET library uses functionality that’s outside of your .NET compatibility level. To understand what’s going on in such cases, and how to best fix it, try following these suggestions:

  1. Windows용 ILSpy를 설치합니다.
  2. 문제가 있는 API 호환성 수준의 .NET 어셈블리를 ILSpy로 드래그합니다. .NET 어셈블리는 Frameworks/Mono/lib/mono/YOURSUBSET/에 있습니다.
  3. 서드파티 어셈블리를 드래그합니다.
  4. 서드파티 어셈블리를 마우스 오른쪽 버튼으로 클릭하고 Analyze를 선택합니다.
  5. In the analysis report, inspect the Depends on section. The report highlights anything that the third-party assembly depends on, but that’s not available in the .NET compatibility level of your choice in red.

Mac Configuration

Property Description
Camera Usage Description Enter the reason for accessing the camera on the device.
Microphone Usage Description Enter the reason for accessing the microphone on the device.
Bluetooth Usage Description Enter the reason for accessing the device’s Bluetooth connection.
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.

Shader Settings

프로퍼티 설명
Shader precision model Select the default precision of samplers used in shaders. Refer to Shader data types and precision for more details.
Strict shader variant matching Use the error shader if a shader variant is missing and display an error in the console.
Keep Loaded Shaders Alive Keep all loaded shaders alive and prevent unloading.

Shader Variant Loading Settings

Use these settings to control how much memory shaders use at runtime.

설정 설명
Default chunk size (MB) Sets the maximum size of compressed shader variant data chunks Unity stores in your built application for all platforms. The default is 16. Refer to Shader loading for more information.
Default chunk count Sets the default limit on how many decompressed chunks Unity keeps in memory on all platforms. The default is 0, which means there’s no limit.
Override Enables overriding Default chunk size and Default chunk count for this build target.
Chunk size (MB) Overrides the value of Default chunk size (MB) on this build target.
Chunk count Overrides the value of Default chunk count on this build target.

Script compilation

프로퍼티 설명
Scripting Define Symbols Sets custom compilation flags.

For more details, refer to Platform dependent compilation.
Additional Compiler Arguments Adds 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, click Add (+). To remove an entry, click Remove (-).

When you have added all desired arguments, click Apply to include your additional arguments in future compilations. Click Revert to reset this list to the most recent applied state.
Suppress Common Warnings Indicates whether to display the C# warnings CS0169 and CS0649.
Allow ‘unsafe’ Code Activate 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 activate the option in the Inspector window that appears.
Use Deterministic Compilation Indicates whether to prevent compilation with the -deterministic C# flag. With this setting active, compiled assemblies are byte-for-byte the same each time they’re compiled.

For more information, refer to Microsoft’s deterministic compiler option.

최적화(Optimization)



Property Description
Prebake Collision Meshes Adds collision data to Meshes at build time.
Preloaded Assets Sets 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.
Managed Stripping Level Chooses how aggressively Unity strips unused managed (C#) code. The options are Minimal, Low, Medium, and High.
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’s in use.

For more information about these options and bytecode stripping with IL2CPP, refer to ManagedStrippingLevel.
Vertex Compression Sets vertex compression per channel. This affects all the meshes in your project.
Typically, Vertex Compression is used to reduce the size of mesh data in memory, reduce file size, and improve GPU performance.

For more information on how to configure vertex compression and limitations of this setting, refe to Compressing mesh data.
Optimize Mesh Data Enable this option to strip unused vertex attributes from the mesh used in a build. This option reduces the amount of data in the mesh, which can help reduce build size, loading times, and runtime memory usage.

Warning: If you have this setting enabled, you should remember to not change material or shader settings at runtime.

Refer to PlayerSettings.stripUnusedMeshComponents for more information.
Texture MipMap Stripping Enables mipmap stripping for all platforms. This strips unused mipmaps from Textures at build time. Unity determines unused mipmaps by comparing the value of the mipmap against the Quality Settings for the current platform. If a mipmap value is excluded from every Quality Setting for the current platform, then Unity strips those mipmaps from the build at build time. If QualitySettings.masterTextureLimit is set to a mipmap value that has been stripped, Unity will set the value to the closest mipmap value that has not been stripped.

Stack Trace

Select your preferred logging type by enabling the option that corresponds to each Log Type.

프로퍼티 설명
없음 No logs are ever recorded.
ScriptOnly Logs only when running scripts.
Full Logs all the time.

Refer to stack trace logging for more information.

레거시

프로퍼티 설명
Clamp BlendShapes (지원 중단 예정) Activate the option to clamp the range of blend shape weights in SkinnedMeshRenderers.
macOS
macOS development
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961