private void CreateCleanEntry(Transform spawn, CategoryManager categoryManager) { if (categoryManager.GetComponent <UnityEngine.UI.Extensions.ReorderableList>()) { spawn = categoryManager.GetComponent <UnityEngine.UI.Extensions.ReorderableList>().ContentLayout.transform; } else { spawn = categoryManager.transform; } EntryData tempEntry = Instantiate(entryPrefab, spawn.position, Quaternion.identity) as EntryData; tempEntry.transform.SetParent(spawn); tempEntry.GetComponent <RectTransform>().localScale = new Vector3(1, 1, 1); tempEntry.name = ""; tempEntry.SetCleanData(); cleanEntry.Add(tempEntry); categoryManager.UpdateData(); }