# Register(Type, Assembly, string, Action)

> Registers a lifecycle callback with the lifecycle controller. Called by generated code only.

## Definition

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

```csharp
public static void Register(Type lifecycleAttributeType, Assembly assembly, string methodFullName, Action callback)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): **** (\[Assembly]\(https\://learn.microsoft.com/dotnet/api/system.reflection.assembly)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)):&#x20;
