# SetIRefCounted_ReleaseFn(int, RefCountDelegate, bool)

> Used by codegen

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public static void SetIRefCounted_ReleaseFn(int indexInTypeArray, IRefCounted.RefCountDelegate fn, bool burstCompile)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): TypeIndex.Index**** (\[RefCountDelegate]\(/engine/7000.0/script-reference/unity/entities/irefcounted/refcountdelegate)): Release function**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Is burst enabled
