How do you set a input field via code?
I have an input field that i want to have set with a default value that is set by code. Is there a way to do this?
Comment
Best Answer
Answer by mdagreda · Feb 24, 2016 at 09:41 PM
I guess I'm pretty dumb because i didn't try setting the text variable. That ends up working. For some reason i thought that was going to set the placeholder text.
Your answer
![](https://koobas.hobune.stream/wayback/20220612065512im_/https://answers.unity.com/themes/thub/images/avi.jpg)