Make method variable show up in Inspector

Hey, so I’m trying to achieve what you see below…

42377-capture2.png

See the “OnClick”?

I kind of want to make a method/void variable show up in inspector and then use it. Thanks

So I answer my own question… It turns out you have to include the namespace:

using UnityEngine.Events;

And then to have it appear in the editor, you do

public UnityEvent methods;

Then to activate them, you do

methods.Invoke();

Even though I found my own answer, thanks @JedBeryll for your time.