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.
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.
Thank you
Yes, that solves my problem
Also I have found a similar example followed the link:
That was a long 8 minutes for one line of code!