public void RefreshAllCells() { int count = content.childCount; for (int i = 0; i < count; i++) { Transform tf = content.GetChild(i); UICell cell = tf.GetComponent <UICell>(); if (cell != null) { cell.Refresh(); } } }