Version: 2023.1

ScriptCompilerOptions

class in UnityEditor.Compilation

切换到手册

描述

传递给脚本编译器的编译器选项。

变量

AdditionalCompilerArgumentsAdditional compiler arguments.
AllowUnsafeCode编译脚本时允许使用“unsafe”代码。
AnalyzerConfigPathStores the path to the Roslyn global config file.
ApiCompatibilityLevel给定 Assembly 的 ApiCompatibilityLevel。
CodeOptimizationIndicates whether performance optimization is enabled for the assembly
EditorAssembliesCompatibilityLevel EditorAssembliesCompatibilityLevel for Editor Assemblies.
LanguageVersionString representation of the language version being used to compile the current Assembly.
ResponseFiles影响当前编译的响应文件的路径的数组。
RoslynAdditionalFilePathsStores the paths to the Roslyn Analyzer additional files.
RoslynAnalyzerDllPathsStores the paths to the .dll files.
RoslynAnalyzerRulesetPathStores the path to the Roslyn ruleset file.

构造函数

ScriptCompilerOptions使用用于编译脚本的默认值创建 ScriptCompilerOptions。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961