Update UnityExtension.cs

This commit is contained in:
ALEXTANG
2024-05-08 17:11:39 +08:00
parent 34c514cae8
commit 682a0bd786

View File

@@ -170,7 +170,7 @@ namespace TEngine
}
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public static Component FindChildComponent(this Type type, Transform transform, string path)
public static Component FindChildComponent(this Transform transform, string path, Type type)
{
var findTrans = transform.Find(path);
if (findTrans != null)