Version: 2022.3
Language : English
Connect the profiler to UWP
IL2CPP scripting backend for UWP

UWP scripting symbols

Unity has a range of built-in scripting symbols which represent options that you can use in your 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
to selectively include or exclude portions of code from compilation. For more information on conditional compilation, refer to Conditional compilation.

Note: You can also refer to scripting symbols can as define symbols, preprocessor defines, or defines.

Unity automatically defines these scripting symbols for Universal Windows PlatformAn IAP feature that supports Microsoft’s In App Purchase simulator, which allows you to test IAP purchase flows on devices before publishing your application. More info
See in Glossary
(UWP):

Scripting symbol Description
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_IL2CPP Defined on all scripts when using 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
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
.
WINDOWS_UWP Defined on all scripts when building for UWP.
ENABLE_WINMD_SUPPORT Defined on all scripts when building for UWP.

Additional resources

Connect the profiler to UWP
IL2CPP scripting backend for UWP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961