Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: boudinov on April 24, 2014, 10:48:38 AM

Title: Is it possible to pass static parameter values with the new delegate system?
Post by: boudinov on April 24, 2014, 10:48:38 AM
Hi,
I am wandering why this is not an option - it will make UI controls interaction even more flexible - out of the box. Is there some hard technical limitation to achieve this?
Thank you
Title: Re: Is it possible to pass static parameter values with the new delegate system?
Post by: ArenMook on April 25, 2014, 07:12:09 AM
Static parameters don't have an object reference. EventDelegate uses object+funcName to determine what the function should be. Same with the property bindings -- object+property name. If there is no "object", there is no way to determine the function. I'd have to store the type as well. I may add it in the future, but that's the reason why it's not done now.