Version: 2022.2
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 scripts 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 Platform (UWP):

Scripting symbol 描述
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 IL2CPP scripting backend.
WINDOWS_UWP Defined on all scripts when building for UWP.
ENABLE_WINMD_SUPPORT Defined on all scripts when building for UWP.

其他资源

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