Runtime: I need to split a spline into two splines

Hi there,

I place a mesh which I use to build my “track”. As I build the track a separat spline gets created with it. (No, I dont want to use spline mesh component)
Example picture:

Now If I want to remove one piece of the mesh, I need to split the spline accordingly.
I can calculate the new start/end locations for the new spline parts but have no idea how to tackle the “get all spline points to this location where Im gonna remove the mesh” so I can copy all of those to create the new spline with it.

Problems I face: there might be no spline points near my remove location. I can also not iterate through the spline points locations and compare it with my remove location. Or at least I dont know how since the track could build up down left right until this point…

Any suggestions?

okay “find closest key to world location” actually takes the closest point along spline and not just in general world space. Which makes this now super easy.

this might help in some form for creating a Y Split road or get somewhat close to creating a Conveyour belt

Duplicate the actor and use this to connect a fork