public void RemoveAButton(string name) { UIButton foundButton = ScrollPanel.Find <UIButton>(name); if (foundButton != null) { ScrollPanel.RemoveUIComponent(foundButton); UnityEngine.Object.Destroy(foundButton); } }