I have UI Panel on my scene and UI Button as a prefab. Is it possible to populate this Panel with several instances of this button programmatically?
You can use the AddListener Function like that:
Button buttonToPress;
buttonToPress.onClick.AddListener ( () =>
Debug.Log("function added at run time.")
);
It uses the block concept. If you know Objective-C you probably had seen this.