Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: greyhoundgames on April 22, 2015, 04:47:22 PM

Title: Notifications with arguments in Il2CPP
Post by: greyhoundgames on April 22, 2015, 04:47:22 PM
I have lots of notifications in my NGUI usage like button clicks etc.
I noticed on IL2CPP a UIProgressBar notifiation which gives the value as an argument is throwing a no AOT compiled error.
Has anyone used arguments in notification sucesfully? Changing it to be a plain notification removed the problem.

Thanks!
Title: Re: Notifications with arguments in Il2CPP
Post by: ArenMook on April 24, 2015, 07:36:42 AM
What notification are you referring to? Progress bar has onDragFinished, which is just a C# delegate with no parameters, and onChange which is an NGUI delegate with arbitrary number of parameters (none by default).
Title: Re: Notifications with arguments in Il2CPP
Post by: greyhoundgames on April 29, 2015, 02:36:10 PM
It was the on drag notification which i was passing the value of the bar. I just removed that and fetched the value myself and it was fine after that.