Has anyone figured out how to do that in code yet? i.e. I would like to generate a UI element at runtime, and assign a function on another gameobject to its OnClick event. How exactly would I go about that?
↧