Hey all,
I have a UIDraggable panel with a UIGrid that has UIButtons added and removed from it based on certain events.
I have made a prefab that contains everything I want from that button (background, text label, sprite checkbox, etc). This prefab works perfectly if I drag it by hand to the grid in my scrollable panel. However, when I add it using NGUITools.AddChild and pass the grid and the prefab name, the button simply stops working. Hover/pressed colors don't change, OnClick() doesn't fire, etc. Is there a workaround for this or am I missing something?
Thanks in advance.