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 = property.propertyPath + ".regexesList";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc73.15",
3
+ "version": "2.0.0-rc73.16",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},
@@ -51,3 +51,4 @@
51
51
 
52
52
 
53
53
 
54
+