My question is probably a stupid one but I can’t find answers anywhere,
I need to be able to retrieve the string value from an InputField in my scene and assign it to a variable.
The problem is that I have no clue how to reference this string value in code.
I code in JavaScript incase that means any thing
Make a public variable and add text component to this variable and get the text component’s text value.
public Text inputFieldTextComponent;
string inputText;
void Start()
{
inputText = inputFieldTextComponent.text;
}