Summary
Adds the `callback` to any existing ones registered with the `name`.
It will be invoked using
System.Object.ToString
on the
Animancer.AnimancerEvent.CurrentParameter
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- NamedEventDictionary
Syntax
public Action AddTo(StringReference name, Action<string> callback)
Remarks
If you want an exception to be thrown if something is already registered with the `name`,
use
Animancer.NamedEventDictionary.AddNew``1(Animancer.StringReference,System.Action{``0})
instead.
If you want to later remove the `callback`,
you need to store and remove the returned System.Action
.
Parameters
Name | Type | Description |
---|---|---|
name | StringReference | |
callback | Action |
Return Value
Type | Description |
---|---|
Action |