USplineComponent, add point in middle?

I have a bunch of functions that spawn a USplineComponent, and add points to it.

This works fine, but what if I want to go back and add a point in the middle of the spline?

I can use

USplineComponent::FindLocationClosestToWorldLocation

to get the FVector at which i want to add the point, but how can i specify that the new point goes in the middle of the existing spline, and doesn’t add to the end?

Thanks!

Ah, found it . USplineComponent::AddSplinePointAtIndex. :slight_smile: