//Clear current items.
ClearGrid();
yield return new WaitForEndOfFrame
();
foreach (UserLevelInfo levelInfo in _userLevelItems.Where(predicate))
{
GameObject go = Instantiate(UserLevelItemPrefab) as GameObject;
Transform itemTrans = item.transform;
itemTrans.parent = _gridTransform;
itemTrans.localScale = Vector3.one;
itemTrans.localPosition = Vector3.zero;
}
//Reposition the grid elements.
GridList.Reposition();
yield return new WaitForEndOfFrame
();
//Recalculate clipping.
_dragPanel.ResetPosition();