internal Enumerator(DictionarySerializable <TKey, TValue> dictionary) { _Dictionary = dictionary; _Version = dictionary._Version; _Current = default(KeyValuePair <TKey, TValue>); _Index = 0; }
private void CheckInitialize(SerializedProperty property, GUIContent label) { if (_Dictionary == null) { var target = property.serializedObject.targetObject; _Dictionary = fieldInfo.GetValue(target) as DictionarySerializable <TKey, TValue>; if (_Dictionary == null) { _Dictionary = new DictionarySerializable <TKey, TValue>(); fieldInfo.SetValue(target, _Dictionary); } _Foldout = EditorPrefs.GetBool(label.text); } }
public ImagePaletteResults(ImagePaletteParameters parameters) { Parameters = parameters; FileResults = new DictionarySerializable<string, ImagePaletteResult>(); }