How to add OnClick listener in script to see it in inspector?

Hi!
I’ve got a bit problem with OnClick Listeners.
I add a listener to a UI Button and it works but I can not see it in the inspector.

go.GetComponent<Button>().OnClick.AddListener( () => .... ) 

I’m making some tool that manipulates gameobjects in design time and it should add onclick events and save them to a prefab but it doesn’t.

54964-2015-09-25-18-04-53-lvl-introunity-fancy-towers-ip.png

For anyone who is searching for the same problem, use this:

UnityEventTools.AddPersistentListener(unityEvent, fuctionToCall);

You can refer to this link to know more about AddPersistentListener.

There are many more functions to choose from, refer here.