Esempio n. 1
0
 public static void DestroyDropDownScrollBar(UIDropDown dropDown)
 {
     UIScrollbar[] scrollbars = dropDown.GetComponentsInChildren <UIScrollbar>();
     foreach (UIScrollbar scrollbar in scrollbars)
     {
         UnityEngine.GameObject.DestroyImmediate(scrollbar.gameObject);
     }
 }