# extraScriptingDefines

> User-specified preprocessor defines used while compiling assemblies during the build. (optional)

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public string[] extraScriptingDefines { readonly get; set; }
```

### Remarks

Preprocessor defines may be used to exclude serialized fields from class definitions, so this can have an influence on how objects are serialized during the build process. Typically values passed here should match any extra scripting defines passed during the player build.

Additional Resources: [\_extraScriptingDefines](/engine/6000.6/script-reference/unityeditor/buildplayeroptions/extrascriptingdefines.md)
