using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Globe : MonoBehaviour {
public static Transform FindChild(Transform parent, string name)
{
Transform item = null;
//寻找自身一级目录下的子物体有没有该名字的子物体
item= parent.FindChild(name);
//如果有,返回他
if (item != null) return item;
Transform go = null;
递归查找子物体/获取子物体上组件
最新推荐文章于 2024-10-01 21:14:33 发布