Increasing distance with each item in loop

Hello,

I wanted help transforming the position of items in an array in a loop and increase the position of each item further on the y axis with each item in a loop.

That way if I had an array of 5 items and I loop through them, they all appear above each other instead of on top of each other. Sorry if this is kind of vague, but I’ll try to answer any questions on my questions if needed.

You can create a function to position them vertically according to their index in the array.

Vector3 staggeredPosition = Vector3.up * (index * verticalSpacing);

oh I didn’t know about this, I’ll try it!