Many ways:
- you could create an array of static meshes and then add static mesh components based on that:
- it would also work without the variable:
- the blueprint police may try to stop you from doing this, but just ignore them:
- the
Select
node would work, too
All of the above would produce the same result.
- perhaps there is no need to create the coasters dynamically. If you know upfront what is needed, the component can be made a part of the spline actor manually: