We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1340f18 commit ac5bfbbCopy full SHA for ac5bfbb
src/UQuery.cs
@@ -67,7 +67,10 @@ public static T SelectByPath<T>(string path) where T : class
67
{
68
if(!keys.Any())
69
break;
70
- target = target.Child(keys.Pop());
+ var key = keys.Pop();
71
+ target = target.Child(key);
72
+ if (target is null)
73
+ throw new GameObjectNotFoundByPath(key, path);
74
}
75
76
if (@class is null)
src/package.json
@@ -1,6 +1,6 @@
1
2
"name": "com.ivysola.uquery",
3
- "version": "1.0.3",
+ "version": "1.0.4",
4
"displayName": "uquery",
5
"description": "Library for querying unity gameobject",
6
"unity": "2020.2",
0 commit comments