public void OnDestroy() { textElements.ForEach(x => x.Destroy()); textElements.Clear(); verticalLayout.Destroy(); }