# OnAfterDeserialize()

> Implement this callback to transform data back into runtime data types after an object is deserialized.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
void OnAfterDeserialize()
```

### Remarks

Unity invokes the `OnAfterDeserialize` callback on an object after deserializing it. In this callback, you can transform the deserialized data back into your preferred runtime data type. For example, use key and value arrays to repopulate a C# `Dictionary` object.

Refer to [Custom serialization](/engine/6000.0/manual/scripting/compilation-and-code-reload/script-serialization/custom-serialization.md) in the Manual for more information.
