public static GameObject FindHideChildGameObject(GameObject parent, string childName)
{
if(parent.name == childName)
{
return parent;
}
if(parent.transform.childCount < 1)
{
return null;
}
GameObject obj = null;
for(int i = 0;i
关注
打赏
Unity根据名称递归查找一个物体的子物体
立即登录/注册


微信扫码登录