Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ashwanikumar04 on May 14, 2013, 12:59:21 AM

Title: UIButtonMessage vs UIButtonCallback
Post by: ashwanikumar04 on May 14, 2013, 12:59:21 AM
Hello All:

What is the difference between UIButtonMessage and UIButtonCallBack scripts?
When should we use these two scripts.
Title: Re: UIButtonMessage vs UIButtonCallback
Post by: ArenMook on May 14, 2013, 02:25:00 AM
What's UIButtonCallback?
Title: Re: UIButtonMessage vs UIButtonCallback
Post by: ashwanikumar04 on May 14, 2013, 03:07:44 AM
UIButtonCallBack is a script in NGUI for handling callbacks. I am not able to understand how it differs from UIButtonMessage which also provides the same functionality.
Title: Re: UIButtonMessage vs UIButtonCallback
Post by: Nicki on May 14, 2013, 04:18:51 AM
Do you mean UIEventListener?

If so, you should use that instead of buttonmessage.

If you didn't mean that, then you should still use UIEventListener instead of buttonmessage. ;)

Maybe UIButtonCallBack is some custom script? Because it's not in the NGUI core.