# OnCodeInitializingAttribute()

> Marks the decorated static method to be invoked after Unity has deserialized and restored all managed objects following a domain reload.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Scripting.LifecycleManagement](/engine/6000.6/script-reference/unity/scripting/lifecyclemanagement.md)
* **Assembly:** Unity.Scripting

```csharp
public OnCodeInitializingAttribute()
```
