unity NGUI Grid

UIGrid GRID = proficiencyItemGrid.GetComponent<UIGrid> ();
GRID.repositionNow = true;  // 刷新

 

 

List<GameObject> canUseList = GridUtil.GetCanUseItemList(currencyGrid.gameObject);
StoreCurrencyItem item;

if(storeshelflist.Count!=0)
{
  for (int i = 0; i < storeshelflist.Count; i++) {
    item = GridUtil.GetNewItemObj<StoreCurrencyItem>(canUseList, currencyGrid.gameObject, storecurrencyItemPfb);

  }

}

posted @ 2016-11-17 14:56  色色先生  阅读(370)  评论(0编辑  收藏  举报