# OnBeforeSerialize()

> Unity calls this method automatically before serialization.

## Definition

* **Type:** Method
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.6/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor

```csharp
public void OnBeforeSerialize()
```
