NGUI查找子节点下的所有组件并且循环遍历销毁
来源:互联网 发布:淘宝体验中心 编辑:程序博客网 时间:2024/09/21 11:23
function OnDisable() {
switch(this.name){
case "UIGrid"://用于标识父节点
for(var i:int = 0;i<this.transform.childCount;i++)//遍历子节点
{
Destroy(this.transform.GetChild(i).gameObject);//销毁子节点数据
}
break;
}
}
switch(this.name){
case "UIGrid"://用于标识父节点
for(var i:int = 0;i<this.transform.childCount;i++)//遍历子节点
{
Destroy(this.transform.GetChild(i).gameObject);//销毁子节点数据
}
break;
}
}
0 0
- NGUI查找子节点下的所有组件并且循环遍历销毁
- sql 查找节点下的所有子节点,查找节点的所有父节点
- Extjs4中tree组件查找所有父节点和查找所有子节点的递归方法
- bom结构,查找节点下所有子节点
- SQL经典代码---查找节点下所有子节点
- 遍历treeview下所有的节点,包括子节点,以勾选为例
- Skyline遍历指定Group下的子节点、查找并创建节点
- 树形节点的所有子节点的遍历
- 递归遍历所有xml的节点及子节点
- 使用表函数查找某节点的所有子节点
- MSSQL查找所有子节点
- 循环子节点下的物体
- SQL 双亲节点查找所有子节点
- JQuery的父、子、兄弟节点查找,节点的子节点循环
- delphi 遍历treeview某个节点下所有节点的函数
- delphi 遍历Treeview特定节点下的所有节点
- delphi 遍历treeview某个节点下所有节点的函数
- delphi 遍历treeview某个节点下所有节点的函数
- eclipse 背景色 推荐
- 端到端的全流程管理助企业管理落地
- hdu 1823(二维线段树入门题)
- 我们为什么需要DTO(数据传输对象)
- XenServer 虚拟机备份脚本
- NGUI查找子节点下的所有组件并且循环遍历销毁
- Angularjs表单的使用
- Copy List with Random Pointer
- 【Cocos2dx-3.x】通信协议之HTTP通信协议篇
- 多线程sem_init
- android 图片浏览器 demo
- android 过USB-IF测试注意事项及修改
- 数据结构之二叉树练习
- 婴幼儿食谱二十个月孩子