> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.actions/yarn.unity.actions.addfunction-7.md).

# AddFunction(string,Func\<T1, T2, T3, T4, T5, TResult>)

Method in [Actions](/2.4/api/csharp/yarn.unity/yarn.unity.actions.md)

## Summary

```csharp
public void AddFunction<T1, T2, T3, T4, T5, TResult>(string name, Func<T1, T2, T3, T4, T5, TResult> implementation);
```

## Parameters

| Name                                                      | Description |
| --------------------------------------------------------- | ----------- |
| `string` name                                             |             |
| `System.Func<T1, T2, T3, T4, T5, TResult>` implementation |             |
