luoyikun

导航

2020年1月4日 #

unity3d:查找子物体,并输出路径,GetComponentsInChildren,递归查找,栈查找

摘要: 分为两步: 1.找到子物体的transform 2.通过child.parent = root,输出路径 找到子物体的transform 有三种方法:GetComponentsInChildren,递归查找,栈查找 GetComponentsInChildren foreach (Transform 阅读全文

posted @ 2020-01-04 12:45 luoyikun 阅读(42) 评论(0) 推荐(0)