# ScriptCompilerOptions

> Compiler options passed to the script compiler.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Compilation](/engine/6000.7/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public class ScriptCompilerOptions
```

## Constructors

| Constructor                                                                                                      | Description                                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ScriptCompilerOptions()](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/ctor.md) | Creates [ScriptCompilerOptions](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions.md) with default values used for script compilation. |

## Properties

| Property                                                                                                                                                  | Description                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AdditionalCompilerArguments](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/additionalcompilerarguments.md)               | Additional compiler arguments.                                                                                                                                                             |
| [AllowUnsafeCode](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/allowunsafecode.md)                                       | Allow 'unsafe' code when compiling scripts.                                                                                                                                                |
| [AnalyzerConfigPath](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/analyzerconfigpath.md)                                 | Stores the path to the Roslyn global config file.                                                                                                                                          |
| [ApiCompatibilityLevel](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/apicompatibilitylevel.md)                           | [ApiCompatibilityLevel](/engine/6000.7/script-reference/unityeditor/apicompatibilitylevel.md) for a given [Assembly](/engine/6000.7/script-reference/unityeditor/compilation/assembly.md). |
| [CodeOptimization](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/codeoptimization.md)                                     | Indicates whether performance optimization is enabled for the assembly                                                                                                                     |
| [EditorAssembliesCompatibilityLevel](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/editorassembliescompatibilitylevel.md) | [EditorAssembliesCompatibilityLevel](/engine/6000.7/script-reference/unityeditor/editorassembliescompatibilitylevel.md) for Editor Assemblies.                                             |
| [LanguageVersion](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/languageversion.md)                                       | String representation of the language version being used to compile the current [Assembly](/engine/6000.7/script-reference/unityeditor/compilation/assembly.md).                           |
| [ResponseFiles](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/responsefiles.md)                                           | Array of path to the response files that affects the current compilation.                                                                                                                  |
| [RoslynAdditionalFilePaths](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/roslynadditionalfilepaths.md)                   | Array of strings representing the paths of any additional files defined for Roslyn analyzers in the current assembly.                                                                      |
| [RoslynAnalyzerDllPaths](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/roslynanalyzerdllpaths.md)                         | Stores the paths to the .dll files.                                                                                                                                                        |
| [RoslynAnalyzerRulesetPath](/engine/6000.7/script-reference/unityeditor/compilation/scriptcompileroptions/roslynanalyzerrulesetpath.md)                   | Stores the path to the Roslyn ruleset file.                                                                                                                                                |
