Summary
Adds an
Animancer.Parameter`1.OnValueChanged callback to the parameter registered with the `key`.
Creates the parameter if it didn't exist yet.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- ParameterDictionary
Syntax
public void AddOnValueChanged<T>(StringReference key, Action<T> onValueChanged, bool invokeImmediately = false)
Remarks
The `key` must not be null or empty.
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| key | StringReference | |
| onValueChanged | Action |
|
| invokeImmediately | bool |
Return Value
| Type | Description |
|---|---|
| void |