Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Arowx on October 12, 2013, 03:23:20 PM
-
Hit an issue with Eventdelegates, I have copies a button already setup to call a specific method when OnClick is triggered.
But the OnClick Notify box just shows None.
It looks like Unity has serialised the EventDelegate information but the NGUI interface is not reading it back and showing it in the editor.
Is there a way to clear old EventDelegate information from buttons or a fix to ensure older information is visible in the editor?
-
NGUI removes invalid data automatically. This generally happens when you do something like have a prefab reference a component outside of it.
-
OK it's not a prefab issue as I'm not using prefabs (no blue buttons) and 2 buttons that still work fine show up with None in their On Click fields so there definitely appears to be a case whereby the event delegate is being recorded in Unity but is not displayed in the Editor.
-
I'm not sure the editor shows it, if you set the event delegate in code.
-
I'm not setting the delegate in code, I used the IDE's OnClick settings.