Can you manipulate/generate splines in real time during game play?

Hi there,

I’m trying to make a randomly generated railway for a train to follow; I am initially using a simple strategy of having a limited number of track types, eg. Forward, Left turn, Right turn. All I can find about paths and this type for thing is using splines for train to follow and all these splines are made in the editor and using construct scripts.

How would I go about either saving pre-made splines into blueprints OR generating/ manipulating them using blueprints?

Also is there anyway you using meshes or something else as paths and not using splines at all?

Thankyou.