Version: 2021.2

ScriptCompilerOptions

class in UnityEditor.Compilation

切换到手册

描述

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

变量

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

构造函数

ScriptCompilerOptions使用用于编译脚本的默认值创建 ScriptCompilerOptions。