- Home /
C# How to display all list items in Unity,C# How to show all items in a list in Unity, one item per line
Hi, I'm trying to create a simple list of books that will be added by the user, so I think I've gathered that it needs to be a list rather than an array because a list can resize whereas an array cannot.
In Unity I have a simple canvas with a title and subtitles: On the right to display all books in the collection, on the left to put buttons to interact with the list (add, edit, delete, etc: But I'm not there yet).
In Unity I created a scroll view, and have a game object called "Application" with a text component "Bookslist1" and in C# I have tried an array called booksList2 and populated it with some strings, and I've tried a list called booksList and also populated it with strings.
I'm stuck on how to display all items currently in the list in Unity. Please help!