获得子物体下所有物体 Transform[] trans = GetComponentsInChildren<Transform>(); GetComponentsInChildren<>里面可以是你寻找的任何物体