Loop and spawn
-
Hi,
Can someone show me how to use the function loop?
I have been trying the entire afternoon now with zero success.
To make the most basic thing I mean
Just to spawn all the elements of an array.Can you show me properly how to do it?
I have an array. I want to spawn one of each element somewhere that’s it.
Thank you -
I found the solution. But only one problem remains I cannot spawn for example 4 times the same object.
-
Hi,
Can someone show me how to use the function loop?
I have been trying the entire afternoon now with zero success.
To make the most basic thing I mean
Just to spawn all the elements of an array.Can you show me properly how to do it?
I have an array. I want to spawn one of each element somewhere that’s it.
Thank youHi,
Can someone show me how to use the function loop?
I have been trying the entire afternoon now with zero success.
To make the most basic thing I mean
Just to spawn all the elements of an array.Can you show me properly how to do it?
I have an array. I want to spawn one of each element somewhere that’s it.
Thank youIn the Loop behavior, you use the
For Eachmode, so it would do it for each element in the array. You can either use the Array Behavior or plug it in look shown in the screenshot.
Then inside that loop, you can spawn an object. Nothing special about it - customize it as you wish.

You can use the
currentValueoutput to get the current element in the array. In this example, I just set the text of the spawned label with it.
When looping through the elements, it will spawn one object for each element in the array.
-
Perfection thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login