Version: 2020.2
언어: 한국어
유니버설 Windows 플랫폼: 배포
Windows 기기 포털 배포

유니버설 Windows 플랫폼(UWP) 빌드 설정

UWP용 빌드를 만들려면 빌드 설정(메뉴: File__ > Build Settings)으로 이동하십시오. Platform 리스트에서 Universal Windows Platform 을 선택한 후 Switch Platform 버튼을 선택하십시오.

참고: Universal Windows Platform 은 Windows 컴퓨터에서 Unity를 사용하는 경우에 Platform 리스트에만 표시됩니다.

Unity는 Windows Phone 개발을 지원하지 않습니다.

Unity에서 UWP 애플리케이션 빌드

Unity를 사용하여 UWP용 게임이나 애플리케이션을 빌드하는 경우 기본 워크플로는 다음과 같습니다.

Build Settings 창에서 Build 를 클릭하면 다음 상황이 발생합니다.

  1. Unity가 Visual Studio 프로젝트를 생성하여 익스포트합니다.

  2. Visual Studio에서 생성된 프로젝트의 .sln 파일을 엽니다.

  3. Visual Studio를 사용하여 최종 애플리케이션을 빌드합니다.

Build And Run 을 클릭하면 Unity가 독립적으로 실행할 수 있는 앱 실행 파일을 빌드합니다.

UWP 빌드 설정

이 설정을 사용하여 Unity가 애플리케이션을 빌드하는 방식을 설정할 수 있습니다.

Setting Function
Target Device Choose from the following options to build your app for any device, or select a specific device: Any device, PC, Mobile, or HoloLens.
Architecture Select the type of CPU to build for (only applies to Build And Run).
x64 64-bit CPU.
x86 32-bit CPU.
ARM 32-bit ARM CPU.
ARM64 64-bit ARM CPU.
Build Type Select the type of Visual Studio project or build to generate.
XAML Project Visual Studio project that integrates Unity within a full XAML environment. This results in some performance loss, but lets you use XAML elements in your application.
D3D Project Visual Studio project that integrates Unity in a basic app window. This results in the best performance.
Executable Only Hosts the project in a pre-built executable for rapid iteration. This setting has the quickest iteration speed because it doesn’t require you to build the generated project in Visual Studio. It offers the same performance as D3D Project builds.
Target SDK Version The Windows 10 SDK installed on the local PC to build the application against. This setting is only relevant when calling Windows 10 APIs directly from scripts.

Note: Unity requires the base Windows 10 SDK version 10.0.10240.0 or higher for building UWP apps, and doesn’t support Windows 8/8.1 SDKs.
Minimum Platform Version Minimum Windows 10 release version required to run the app.

Note: This setting is only relevant if you’re using Windows features or APIs that aren’t available in the base Windows 10 version (10.0.10240).
Visual Studio Version Target a specific Visual Studio release if you have multiple versions installed.
Build and Run on Select the target device or transport to deploy and launch the app during Build And Run.
Local Machine Deploys and launches the app on the local PC.
USB Device Deploys and launches the app on a remote device over a USB connection.
Remote Device (via Device Portal) Deploys and launches the app to a connected device over the Device Portal transport.

To deploy over the Device Portal, you must enter the connection and authentication information in these additional fields:

- Device Portal Address (required)
- Device Portal Username (optional)
- Device Portal Password (optional)

For more information, see documentation on Windows Device Portal deployment.
Build Configuration Select the build type (only applies to Build And Run).
Note: These build configurations are the same as those available in the Visual Studio project that Unity generates.
Debug Produces a build that contains additional code you can use for debugging, and enables the Profiler for your build.
Release Produces a build that has debug code stripped out, and enables the Profiler for your build.
Master Produces a build that is fully optimized for release.
Copy References Disable this setting to allow the generated solution to reference Unity files from Unity’s installation folder instead of copying them to the build folder. This can save up to 10 GB of disk space, but you can’t copy the build folder to another PC. Unity also builds your application faster when you disable this setting.
Copy PDB files Enable this setting to include Microsoft program database (PDB) files in the built Standalone Player. PDB files contain debugging information for your application, but might increase the size of your Player. For more information, see documentation on Windows debugging.
Development Build A development build includes scripting debug symbols. When you select the Development Build setting, you can also select the Autoconnect Profiler, Script Debugging, and Scripts Only Build setting. It also enables the DEVELOPMENT_BUILD #define.

For more information about #define directives, see documentation on Platform dependent compilation.
Autoconnect Profiler Automatically connect the Profiler to the build. Only available if you enable the Development Build setting. For more information on the Profiler, see Profiler overview.
Deep Profiling When you enable Deep Profiling, Unity profiles all of your script code and records all function calls. This is useful to pinpoint performance issues with your game code. However, it uses a lot of memory and might not work with very complex scripts. For more information, see documentation on deep profiling.
Script Debugging Attach script debuggers to the Player remotely. Only available if you enable the Development Build setting.
Scripts Only Build Enable this setting to build just the scripts in the current Project. Only available if you enable the Development Build setting.

Once enabled, Unity only rebuilds the scripts in your application, and leaves data files from a previously executed build intact. It significantly improves iteration times if you only change the code in your application.

Note: You need to build the entire Project once before you can use this setting.
Compression Method Compress the data in your Project at build time. This includes Assets, Scenes, Player settings, and GI data. Choose between the following methods:
Default Default compression is set to None.
LZ4 A fast compression format that is useful for development builds. LZ4 compression can significantly improve loading time of applications built with Unity. For more information, see BuildOptions.CompressWithLz4.
LZ4HC LZ4HC - A high compression variant of LZ4 that is slower to build but produces better results for release builds. LZ4HC compression can significantly improve loading time of applications built with Unity. For more information, see BuildOptions.CompressWithLz4HC.
유니버설 Windows 플랫폼: 배포
Windows 기기 포털 배포
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961