Spline Blueprint with replaceble parts of mesh

Here’s a really basic version, let me know if you have any issues or questions.

I created a blueprint actor with a spline component. In the construction script I’m getting the length of the spline, getting a variable called mesh length, and figuring out how many meshes have to be placed to fit the spline. Then I’m comparing the mesh number needed versus the length of the static mesh array, if it’s too small, I add static meshes using the default mesh until it’s the right length, if it’s too large, I’m resizing the array. Once it’s the right size, I add a spline mesh component, reference the array to set the static mesh, and get the position for it based off the spline locations.

1 Like