mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update UnityExtension.cs
This commit is contained in:
@@ -170,7 +170,7 @@ namespace TEngine
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
|
[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);
|
var findTrans = transform.Find(path);
|
||||||
if (findTrans != null)
|
if (findTrans != null)
|
||||||
|
Reference in New Issue
Block a user