Getting a range of index from array?
Is there a way to get an array index range for example: 2-15, as in a range of integers, and plug it into Set Array Elem/any other index node?
asked Sep 19 '15 at 06:00 PM in Blueprint Scripting
You can try using Resize to initiate bigger number of elements in same time:
There no minimal index option, it tied to way native arrays work in C++ (they point to memory address where array start and read farther as you input index), you would need to fix indexes using functions and interact with array exclusively using those functions
Not for sure, if this helps, but if you are looking for the range index to be random, but if so, here's the node
if you are, use the length or last index node for an array (whether you want the range to relative to 1 or 0) to supply the max value for the RandomInteger node.
Have a great day!
answered Sep 20 '15 at 10:53 AM
If anyone is still wondering, For each loop might do the job.
answered Jul 06 '17 at 09:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here