When I save a working UIButton into a prefab and then instantiate it during runtime in my game, the EventDelegate list (onClick) it was carrying goes empty and thus button doesn't do any actions.
Can you please share a bit of code for the recreation of the EventDelegate list with code after I instantiate it? For example, I need to execute SomeFunction() with SomeParameter that belongs to SomeScript on SomeGameObject.
Or maybe there is some other way to tackle this issue. Thank you!