# DelegateAutoCleanup(Action, Type, string)

> Constructor used by the source generator. Don't attempt to use this directly.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** Unity.Scripting

```csharp
public DelegateAutoCleanup(Action cleanup, Type scopeType, string ownerDescription = "")
```

### Parameters

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