Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dsanchez on January 25, 2013, 09:04:57 AM

Title: Creating uibutton on runtime
Post by: dsanchez on January 25, 2013, 09:04:57 AM
Hello,

I'm trying to create a button on runtime by code but I don't know how. I'm trying to use the AddWidget<T> method but it doesn't work. In the other hand, if I could create it, how should I assign it a "click" method dynamically??

Best regards.
Title: Re: Creating uibutton on runtime
Post by: ArenMook on January 25, 2013, 10:48:06 AM
Look inside UICreateWidgetWizard.cs. Everything inside is created by code, including buttons.