- Home /
Question by
skinchlea · Mar 14, 2018 at 11:25 PM ·
uitextinputfieldchecking
How do i check the inputted text in a Multi line Input field?
Let's say the player is instructed to type 'Hello' into an Input field. I have a check already setup to see if they have typed it correctly.
public InputField inputText;
and inside a function later on i have
if (inputText.text == "Hello")
{
//Do Something
}
Now i want to perform this check on a multi line Input field. Is there a way to check each line individually, or even all at once?
Thanks
Comment
Answer by TeohRIK · Mar 15, 2018 at 12:51 AM
every \n mean new line. So you to write a function to detect the \n