Download

ULandscapeSplinesComponent cannot be created from code.

Hi,

I would like to extend the StreetMap plugin in a way that it creates roads and railways based on OpenStreetMap data. The ULandscapeSplinesComponent would be the best fit as it provides an editor that allows edits after the initial creation of the splines.
Unfortunately, the ULandscapeSplinesComponent class is structured in a way that only the FLandscapeToolSplines class is allowed to access the ControlPoints and Segments members.
As it is possible to create a Landscape from code while bypassing the editor tools it would be reasonable to allow this for LandscapeSplinesComponents as well.

Any ideas how to workaround this problem or is a change of the engine code inevitable?

Regards,
Richard