com.wallstop-studios.unity-helpers 2.0.0-rc73.15 → 2.0.0-rc73.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
[CustomPropertyDrawer(typeof(SourceFolderEntry))]
|
|
14
14
|
public sealed class SourceFolderEntryDrawer : PropertyDrawer
|
|
15
15
|
{
|
|
16
|
-
private static readonly Dictionary<string, bool> RegexesFoldoutState = new(
|
|
16
|
+
private static readonly Dictionary<string, bool> RegexesFoldoutState = new(
|
|
17
|
+
StringComparer.Ordinal
|
|
18
|
+
);
|
|
17
19
|
|
|
18
20
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
19
21
|
{
|
|
@@ -179,7 +181,10 @@
|
|
|
179
181
|
availableWidth,
|
|
180
182
|
EditorGUIUtility.singleLineHeight
|
|
181
183
|
);
|
|
182
|
-
string regexesFoldoutKey =
|
|
184
|
+
string regexesFoldoutKey =
|
|
185
|
+
property.serializedObject.targetObject.name
|
|
186
|
+
+ property.propertyPath
|
|
187
|
+
+ ".regexesList";
|
|
183
188
|
RegexesFoldoutState.TryAdd(regexesFoldoutKey, true);
|
|
184
189
|
RegexesFoldoutState[regexesFoldoutKey] = EditorGUI.Foldout(
|
|
185
190
|
regexFoldoutLabelRect,
|
package/package.json
CHANGED