I'm working on some project where I need to create on the fly, buttons with NGUI. I found some answers but none of them could help me. Iknow it's simple but according to what I found on http://www.tasharen.com/forum/index.php?topic=81.0 and in NGUI script (UICreateWidgetWizard.cs), like:
UILabel lbl = NGUITools.AddWidget<UILabel>(go);
it's still not working..
An my code is the following:
UIButton button = NGUITools.AddWidget<UIButton>(parent);
Thanks for yout help guys !