0
Answered

How to Make initial size of a List to have More than 10 elements

agan 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 5

Hi,

i try to create a list, but it seems the max size is only 10. when i type 11 or more it forced to 10...



Let's say i want to make initial 300 elements in a list (with zero value in it) , how to do it ?

thanks in advance...

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+1
Pending Review

You can use a For Loop with the Add List Item unit. Use 0 as first, 300 as last, and use Add List Item in the body.

thanks, i'll try...

Hi Lazio,

Can we save the list for a name, then call it with FOR-LOOP somewhere in the graph ?

Yes, use any Set Variable unit to save it, then later Get Variable with the same name to retrieve it.