How do I type my own paramater in a function on an input field?

alt text

This function takes a string as a parameter, but since it’s on an input box, it’s taking the text of the input field as the parameter. How do I make it so I can type in my own string instead?

(this is for unity 2017)

Well, It’s not clear what kind of UnityEvent this is. If it is a UnityEvent that actually takes a string parameter when invoked, that parameter is passed from the caller. If the field is just an ordinary UnityEvent without parameters, you have to select the right method from the drop down list. It might be listed several times, once without parameter and once with.

If it uses an InputField then it should be defined somewhere in your scene hierarchy, you should be able to set it there.