# OnCodeLoadedAttribute()

> Marks the decorated static method to be invoked after all assemblies have been loaded during Editor startup or after a code reload.

## Definition

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

```csharp
public OnCodeLoadedAttribute()
```
