Author Topic: Notifications with arguments in Il2CPP  (Read 4029 times)

greyhoundgames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 39
    • View Profile
Notifications with arguments in Il2CPP
« 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!
« Last Edit: April 22, 2015, 05:08:23 PM by greyhoundgames »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Notifications with arguments in Il2CPP
« Reply #1 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).

greyhoundgames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 39
    • View Profile
Re: Notifications with arguments in Il2CPP
« Reply #2 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.