Need help with creating landscape spline in C++

Hi, I’m looking to use landscape spline component in C++ to procedurally create roads. Currently, I’m using spline mesh components instead, but I cannot seem to bend the spline mesh and conform it to the landscape like how the landscape spline component seems able to do.
I am having great difficulty in finding any C++ or even blueprint tutorial on creating landscape spline. Also, with the lack of information in the API documentation, it is really difficult to know which function I need to use. Can anyone help explain to me how I can use the landscape spline component or provide a sample C++/blueprint in creating a landscape spline that conforms to the landscape?
Much appreciated.

This is what you are looking for:

https://docs.unrealengine.com/latest/INT/BlueprintAPI/LandscapeEditor/EditorApplySpline/index.html

You can use your spline component to deform a landscape, just like the built in Edit Spline, from Landscape Editor, with some benefits.

I’ve found it yesterday, and I’m going to the same path as you, create a better road system to UE4 for my hobby project.

Wondering how exactly you’ll generate those splines procedurally, can you share?

Hi, unfortunately the idea to procedurally generate roads was scrapped due to a change in the project. So, I never did manage to generate splines procedurally.

Thanks for the help! This seems to be what I was looking for. I’ll try it out when I have the time.

Thanks anyway!