Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - crusty210

Pages: [1]
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

  1. nonExpandedCountriesPopup.GetComponent<UIPopupList>().items = masterHandler.GetComponent<MasterHandlerL1>().MasterCountries;

  1. MasterCountries
is the list that I am adding to the popup under the GameObject
  1. nonExpandedCountriesPopup

I tried using
  1. nonExpandedCountriesPopup.GetComponent<UIPopupList>().Close();
to close (destroy) the instance but it doesn't work

Any clues?

Pages: [1]