Version: 2018.4
Writing and executing tests in Unity Test Runner
IL2CPP

C# compiler

To compile C# source code in a Unity Project, the Unity Editor uses a C# compiler. The C# compiler that Unity uses depends on the Scripting Runtime Version option in the Player Settings (menu: Edit > Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your Project behave. More info
See in Glossary
> Player > Other Settings).

Scripting Runtime Version C# compiler C# language version
.NET 3.5 equivalent mcsThe Mono C# compiler file format. More info
See in Glossary
C# 4
.NET 4.6 equivalent Roslyn C# 7.3

The Editor passes a default set of options to the C# compiler. To pass additional options in your project, see the documentation for Platform Dependent Compilation.


  • 2018–11–07 Page published

  • Roslyn compiler exposed in 2018.3 NewIn20183

C# compiler Roslyn compiler NewIn20183

Writing and executing tests in Unity Test Runner
IL2CPP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961