您当前的位置: 首页 >  unity

程序员正茂

暂无认证

  • 4浏览

    0关注

    283博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unity根据名称递归查找一个物体的子物体

程序员正茂 发布时间:2016-10-28 16:44:30 ,浏览量:4

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            
关注
打赏
1660743125
查看更多评论
0.0380s