I’m new to UE4 and the API; it would take me a long time to figure this out, and I need to move along with this university project I have.
Considering what I’m placing in a UE4 level are Actors, I am wondering if there’s a way to build a landscape using the ALandscape class. If yes, what would be the proper steps to building a landscape from the ALandscape class at runtime instead of calling the Sculpt tool to create a new landscape using the editor.
Can you instantiate an ALandscape object and create a landscape out of it, assuming you provide the same details as what the wizard asks, such as what initial mesh to use? If yes, what would be an example of it?
Essentially, what I’m trying to accomplish is a starting point for procedural landscape generation to place roads on top and create three different scenario environment types: one with a straight road and no traffic, one with a straight road and one or more static objects such as a mock-up car, and one with curved roads, all utilizing splines. Probably using a Spline Component and the EditorApplySpline function from the ALandscapeProxy class (ALandscapeProxy::EditorApplySpline | Unreal Engine Documentation).