public Transform CreateItem(Transform parent) { if (Prefab == null) { return(null); } Transform itemView = AvailableItemListView.Instantiate(Prefab, parent) as Transform; return(itemView); }
public Transform CreateItem(Transform parent) { if (Prefab == null) { return(null); } Transform itemView = AvailableItemListView.Instantiate(Prefab, parent) as Transform; itemView.GetComponent <Text>().text = ""; return(itemView); }