Callbacks
The Scriptable Dictionary has several events that you can subscribe to by code.
OnItemAdded/ OnItemRemoved
Sends the key and value added/removed as an argument.
Modified
This event is triggered whenever an entry is added, removed or modified.
Modifying a dictionary is when you access the value through the key like so: _dictionary[Key] = newValue;
or _dictionary[Key] += newValue;
Last updated