555ea
1
We have such function lists in new 4.6 components like Button, Toggle and etc.
How can i use this in my own scripts ?
I want like to have my script, then
public Unity4.6.DelegateList list;
And then access it from editor, droping objects, selecting methods and passing arguments.
555ea
2
Well, the best solution yet is :
Drop a Button component, make sure it is interactable.
Drop the wanted functions in the Editor on that button.
From any function make a Button Simulation (simulating click actually) by
PointerEventData pointer = new PointerEventData (EventSystemInstance.Instance());
ExecuteEvents.Execute (gameObject, pointer, ExecuteEvents.pointerClickHandler);