DictionaryHandler<TDictionary, TKey, TValue>

A class that provides various utilities for modifying and querying dictionary values represented by a PropertyValueEntry.

It is also responsible for translating and ordering dictionary keys into persistent indices.

namespace Sirenix.OdinInspector.Editor
{
public class DictionaryHandler<TDictionary, TKey, TValue> : IDictionaryHandler<TKey>
where TDictionary : Object, IDictionary<TKey, TValue>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Constructors

Definition Description
DictionaryHandler(IPropertyValueEntry<TDictionary>) Initializes a new instance of the DictionaryHandler<TDictionary, TKey, TValue> class.

Properties

Return Type Definition Description
bool SupportsPrefabModifications Whether the dictionary represented by this handler supports prefab modifications.

Methods

Return Type Definition Description
bool ApplyChanges() Apply all queued changes, and apply prefab modifications if applicable. This method only does something during Repaint.
void ForceUpdate() Force the dictionary handler to update its internal dictionary index mappings.
TKey GetKey(int, int) Gets the key value at the given selection and dictionary index.
TKey GetKey(Object, int) Gets the key value at the given index from the given dictionary.
void Remove(TKey) Queues a remove modification for a given key. Modifications are applied in Repaint.
void SetValue(TKey, Object) Queues a set value modification for a given key. Modifications are applied in Repaint.