We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64228de commit 1340f18Copy full SHA for 1340f18
src/UQuery.cs
@@ -1,4 +1,4 @@
1
-namespace UnityEngine.Query
+namespace UnityEngine.Query
2
{
3
using System;
4
using System.Collections.Generic;
@@ -72,7 +72,7 @@ public static T SelectByPath<T>(string path) where T : class
72
73
if (@class is null)
74
return target as T;
75
- return target.GetComponent<T>();
+ return target?.GetComponent<T>();
76
}
77
private static GameObject Find(string name, string path)
78
src/package.json
@@ -1,6 +1,6 @@
"name": "com.ivysola.uquery",
- "version": "1.0.2",
+ "version": "1.0.3",
"displayName": "uquery",
5
"description": "Library for querying unity gameobject",
6
"unity": "2020.2",
0 commit comments