Author Topic: PopupList onChange firing twice.  (Read 1239 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
PopupList onChange firing twice.
« on: March 26, 2014, 12:17:04 AM »
Hi,

I'm doing the following, and it's firing twice for each change:

popupList.onChange.Add(new EventDelegate(OnSelectionChange));

   public void OnSelectionChange()
   {
      Debug.Log("popupList.value="+ popupList.value);
   }

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PopupList onChange firing twice.
« Reply #1 on: March 26, 2014, 03:01:23 AM »
The only way it can be called twice is if you added it twice.