Buttonclick Invokes A String In The Inputfield

Hello,

Let’s suppose that I have two objects: a Button and InputField. What should I write to a script so when I push the Button I get a string in the InputField like “Hello!” ? And how to know the name (or tag) of InputField?
Thank you.

You shouldn’t write a script for that at all. In the Button’s “On Click” handler, click the “+” button, drag the InputField in, pick its InputField → text property, and type “Hello!”. Job done.

1 Like

Thank you
Yes, that solves my problem
Also I have found a similar example followed the link:

https://www.youtube.com/watch?v=o9Sl0GwRzx0

That was a long 8 minutes for one line of code!