jp.keijiro.klutter-tools 2.0.0 → 2.1.0

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.
@@ -44,9 +44,12 @@ public struct AutoProperty
44
44
  var autoProps = allFields.Where(f => f.FieldType == typeof(AutoProperty));
45
45
 
46
46
  foreach (var f in autoProps)
47
- f.SetValue(target, new AutoProperty(FindProperty(so, f.Name)));
47
+ f.SetValue(target, new AutoProperty(FindProperty(so, ResolveNesting(f.Name))));
48
48
  }
49
49
 
50
+ static string ResolveNesting(string name)
51
+ => name.Replace("__", ".");
52
+
50
53
  static string GetPropNameBacking(string name)
51
54
  => $"<{name}>k__BackingField";
52
55
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "Keijiro Takahashi",
6
6
  "license": "Unlicense",
7
7
  "dependencies": { },
8
- "version": "2.0.0",
8
+ "version": "2.1.0",
9
9
  "unity": "6000.0",
10
10
  "keywords": [ "unity" ]
11
11
  }