- Home /
Question by
DragonFire011 · Dec 21, 2016 at 07:33 AM ·
guiinputvariablestringinputfield
Inputfield set as Variable
How do you store what a player typed in an inputfield as a string?
Comment
Answer by GrKl · Dec 21, 2016 at 07:58 AM
You can set a public variable of type Text. In editor drag and drop your inputfield to that variable. Than variableName.Text is what you are looking for. Remember to using/import UnityEngine.UI
Your answer
Follow this Question
Related Questions
Have a GUI.Button string include a variable as part of the string? 0 Answers
Gui list and color 0 Answers
GetComponent from string name? 3 Answers
Shot Counter Question 2 Answers
variables as GUI 1 Answer