Very Long Scrollable List How To?

OK I thought I would work out what the Bible was all about and have a play with the new UI tools.

Simples!

Take online bible text and extract all the words, then count them then build a UI to let me browse through the words used in the bible and how often they are used to get an idea of what basic topics the Bible covers.

Apparently it has 13,111 distinct words and just over 1 million of them in total.

It is quite a large book to say “Be good to each other and PS look after your planet”. :wink:

Anyway the problem is now I need a nice little scrollable list that will let me view the bibles word usage.

My approach, setup a GroupLayout - Vertical and add a Text field all within a ScrollRect then dynamically add the 13k words as Instances of the Text field and parent them to the GroupLayout.

Even though the groupLayout is a child of a ScrollRect it seems to condense the size of the text fields to the size of the initial grouplayout.

Also I quickly hit the 65k vertices limit (which I thought was fixed in b21???)

I therefore think I must be doing something wrong as ideally a scrolling list will only need to display the elements visible within it.

Any suggestions?

OK it looks like there is no way to get around the 65k limit, without writing my own ‘dynamic’ list.

But I’ve found a fix for the sizing of the list elements with Content Size Fitter on the list and Layout Element’s on the text elements.

Let us know how you get on :slight_smile: