1
NGUI 3 Documentation / Re: UIPopupList
« on: August 07, 2014, 08:11:44 PM »
I am having an issue where when I select a value from the list the list closes but the instance of Drop-Down list still remains in the hierarchy. Now when I click the popup again, another Drop-Down list instance is created in the hierarchy. Is there a way to destroy the previous instance?
I am using the following code to add items to the popup list
is the list that I am adding to the popup under the GameObject
I tried using to close (destroy) the instance but it doesn't work
Any clues?
I am using the following code to add items to the popup list
- nonExpandedCountriesPopup.GetComponent<UIPopupList>().items = masterHandler.GetComponent<MasterHandlerL1>().MasterCountries;
- MasterCountries
- nonExpandedCountriesPopup
I tried using
- nonExpandedCountriesPopup.GetComponent<UIPopupList>().Close();
Any clues?