I'm trying to insert input field text into an arraylist
I want to allow for user input text to be stored in an arraylist based on how many entries the user wants to enter.
So it would ask:
How Many Entries would you like to make? -> USERINPUT (INT) Enter your Input -> USERINPUT(TEXT)
I understand I should use this:
GetComponent().textComponent.text;
to get the text.
How would I create the loop to keep asking for input and storing the input in an arraylist until it reaches the amount of entries the user wants to enter?
For(int i = 0, i < USERENTRIES, i++) {
add userinput to arraylist
}
When the loop is finished I then have an arraylist storing all of their input.
Comment