# ActionRegistrationExtension

Class in [Yarn.Unity](/3.1/api/csharp/yarn.unity.md)

Inherits from `System.Object`

## Summary

Contains extension methods for [IActionRegistration](/3.1/api/csharp/yarn.unity/yarn.unity.iactionregistration.md) objects.

```csharp
public static class ActionRegistrationExtension
```

## Methods

| Name                                                                                                                                                                                                                                                                                                           | Description                                                                          |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [AddCommandHandler(IActionRegistration,string,System.Action)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-1.md)                                                                                                                 | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-33.md)                                                                                                                  | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-44.md)                                                                                                                  | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-22.md)                                                                                                                  | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Action)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-2.md)                                                                                                                 | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func\<T1, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-34.md)                                                                                                | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func\<T1, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-12.md)                                                                                | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func\<T1, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-45.md)                                                                                                  | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler(IActionRegistration,string,System.Func\<T1, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-23.md)                                                                                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IActionRegistration,string,System.Action\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-11.md)                            | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-43.md)                 | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-21.md) | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-54.md)                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-32.md)                    | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2>(IActionRegistration,string,System.Action\<T1, T2>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-3.md)                                                                                               | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2>(IActionRegistration,string,System.Func\<T1, T2, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-35.md)                                                                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2>(IActionRegistration,string,System.Func\<T1, T2, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-13.md)                                                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2>(IActionRegistration,string,System.Func\<T1, T2, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-46.md)                                                                                     | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2>(IActionRegistration,string,System.Func\<T1, T2, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-24.md)                                                                                      | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3>(IActionRegistration,string,System.Action\<T1, T2, T3>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-4.md)                                                                                       | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3>(IActionRegistration,string,System.Func\<T1, T2, T3, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-36.md)                                                                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3>(IActionRegistration,string,System.Func\<T1, T2, T3, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-14.md)                                                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3>(IActionRegistration,string,System.Func\<T1, T2, T3, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-47.md)                                                                             | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3>(IActionRegistration,string,System.Func\<T1, T2, T3, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-25.md)                                                                              | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4>(IActionRegistration,string,System.Action\<T1, T2, T3, T4>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-5.md)                                                                               | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-37.md)                                                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-15.md)                                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-48.md)                                                                     | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-26.md)                                                                      | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5>(IActionRegistration,string,System.Action\<T1, T2, T3, T4, T5>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-6.md)                                                                       | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-38.md)                                                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-16.md)                                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-49.md)                                                             | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-27.md)                                                              | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6>(IActionRegistration,string,System.Action\<T1, T2, T3, T4, T5, T6>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-7.md)                                                               | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-39.md)                                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-17.md)                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-50.md)                                                     | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-28.md)                                                      | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7>(IActionRegistration,string,System.Action\<T1, T2, T3, T4, T5, T6, T7>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-8.md)                                                       | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-40.md)                                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-18.md)                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-51.md)                                             | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-29.md)                                              | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8>(IActionRegistration,string,System.Action\<T1, T2, T3, T4, T5, T6, T7, T8>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-9.md)                                               | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-41.md)                                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-19.md)                   | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-52.md)                                     | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-30.md)                                      | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IActionRegistration,string,System.Action\<T1, T2, T3, T4, T5, T6, T7, T8, T9>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-10.md)                                      | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerator>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-42.md)                           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Threading.Tasks.Task>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-20.md)           | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-53.md)                             | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddCommandHandler\<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, YarnTask>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addcommandhandler-31.md)                              | Adds a command handler. Dialogue will pause execution after the command is called.   |
| [AddFunction(IActionRegistration,string,System.Func)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-1.md)                                                                                                                               | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-10.md)                                  | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-11.md)                        | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, TResult>(IActionRegistration,string,System.Func\<T1, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-2.md)                                                                                                   | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, TResult>(IActionRegistration,string,System.Func\<T1, T2, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-3.md)                                                                                           | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-4.md)                                                                                   | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-5.md)                                                                           | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, T5, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-6.md)                                                                   | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, T5, T6, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-7.md)                                                           | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, T5, T6, T7, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-8.md)                                                   | Add a new function that returns a value, so that it can be called from Yarn scripts. |
| [AddFunction\<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(IActionRegistration,string,System.Func\<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)](/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension/yarn.unity.actionregistrationextension.addfunction-9.md)                                           | Add a new function that returns a value, so that it can be called from Yarn scripts. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.actionregistrationextension.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
