유니버설 Windows 플랫폼용 Player 설정의 Publishing Settings 패널에는 Compilation overrides 드롭다운 메뉴가 있으며, 다음의 3가지 설정이 제공됩니다.
값 | 기능 |
---|---|
없음 | Unity가 Mono C# 컴파일러를 사용하여 모든 C# 스크립트를 컴파일합니다. |
Use Net Core Partially | Unity는 Mono C# 컴파일러를 사용하여 Assets/Plugins , Assets/Standard Assets 및 Assets/Pro Standard Assets 폴더에 있는 스크립트를 컴파일하고, 나머지 스크립트에 대해서는 Microsoft C# 컴파일러를 사용합니다. |
Use Net Core | Unity가 Microsoft C# 컴파일러를 사용하여 모든 스크립트를 컴파일합니다. |
두 컴파일러 모두 장단점이 있습니다. Mono C# 컴파일러로 스크립트를 컴파일하면 JavaScript 스크립트가 참조할 수 있으며, Angry Bots 등에 필요합니다. 따라서 이 경우에는 없음으로 설정해야 합니다. 하지만 Microsoft C# 컴파일러를 사용하면 플러그인 없이도 Microsoft 고유 API를 사용할 수 있습니다. #if ENABLE_WINMD_SUPPORT/#endif에 코드를 래핑하면 문제 없이 컴파일되고 실행될 것입니다.
<user>\AppData\Local\Microsoft\AppCertKit
에 로그가 있으며, 이 로그는 오류에 대한 자세한 정보를 포함합니다.
걱정하지 마세요. 필요한 정의는 같습니다.
UNITY_WINRT | Defined on all scripts |
UNITY_WSA | Defined on all scripts |
UNITY_WINRT_10_0 | Defined on all scripts |
UNITY_WSA_10_0 | Defined on all scripts |
ENABLE_DOTNET | Defined on all scripts when using .NET scripting backend |
ENABLE_IL2CPP | Defined on all scripts when using IL2CPP scripting backend |
NETFX_CORE | Defined on C# scripts that are compiled using Microsoft C# compiler when using .NET scripting backend |
WINDOWS_UWP | Defined on C# scripts that are compiled using Microsoft C# compiler when using .NET scripting backend or IL2CPP scripting backend with .NET 4.6 compatibility level |
ENABLE_WINMD_SUPPORT | Defined on C# scripts that are compiled using Microsoft C# compiler when using .NET scripting backend or IL2CPP scripting backend with .NET 4.6 compatibility level |
플랫폼 의존 컴파일을 참조하십시오.
아래의 두 가지 이유 때문일 수 있습니다.
• 2017–05–16 편집 리뷰 없이 페이지 수정됨
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.