# OnCodeUnloadingAttribute()

> Marks the decorated static method to be invoked before assemblies are unloaded during a code reload. Methods are called in reverse registration order.

## Definition

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

```csharp
public OnCodeUnloadingAttribute()
```
