Method RemoveDestroyedKeys
RemoveDestroyedKeys<TKey, TValue>(Dictionary<TKey, TValue>)
Removes any destroyed keys from a dictionary that uses UnityObjects as its key type.
Declaration
public static void RemoveDestroyedKeys<TKey, TValue>(Dictionary<TKey, TValue> dictionary) where TKey : Object
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<TKey, TValue> | dictionary | A dictionary of UnityObjects that may contain destroyed objects. |
Type Parameters
| Name | Description |
|---|---|
| TKey | The specific type of UnityObject serving as keys in the dictionary. |
| TValue | The value type of the dictionary. |