Custom object function selection. Like the buttons


I want to make a bit more advanced Trigger Enter and I want it to make it like the buttons in the 4.6 UI. Basically you add a new field, put in a object. Select the script you want the function from and select the function. How would I be able to do something like this in my own script?

Thanks in advance

The Unity Forum has a Tutorial

“How to: select a callback function for your script, from the editor.” by Glurth.