# AllowUnsafeCode

> Allow 'unsafe' code when compiling scripts.

## Definition

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

```csharp
public bool AllowUnsafeCode { get; set; }
```
