Please help with spawn object

Well, obviously. You’re removing some objects, not all of them. That’s why I suggested keeping it all in an array to start with.

the first aproach what u send to me, but it seems to be more complicated for me.

If you absolutely must use this method, try it like this. Each button calls a custom event and then populates the array.

  • to create a Custom Event:

image

  • give it a meaningful name, and then you can call it like so:

image

This way you can have a reusable piece of script so you do not need to copy and paste the same nodes all the time.


But if you really want a hundred buttons, a very different approach is needed. There surely is some kind of logic that decides what’s what. But again, the above should work for something quick & easy.

Good luck!