Summary
Registers the `callback` with the `name` but throws an
System.ArgumentException
if something was already registered with the same `name`.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- NamedEventDictionary
Syntax
public void AddNew(StringReference name, Action callback)
Remarks
This matches the standard
System.Collections.Generic.Dictionary`2.Add(`0,`1)
behaviour,
unlike Animancer.NamedEventDictionary.AddTo(Animancer.StringReference,System.Action)
.
Parameters
Name | Type | Description |
---|---|---|
name | StringReference | |
callback | Action |
Return Value
Type | Description |
---|---|
void |