1
NGUI 3 Support / Re: adding list to UIGrid
« on: April 01, 2014, 08:08:07 AM »
but in this case it will be infinity loop or i`ve missed something?
- while (Grid.transform.childCount > 0) - childCount always would be > 0
- {
- Transform child = Grid.transform.GetChild(0); - i don`t need get the first child i need to loop through all
- var childNew = child.transform.FindChild ( "Checkbox" ).GetComponent<UIToggle> ( );
- if ( childNew.value ) {
- NGUITools.Destroy ( child.gameObject );
- }
- }
