Aligning splined fence mesh to landscape. (4.26)

Hi there. I’m building a map currently and I’ve run into a hurdle I just cant seem to pass. I’ve used a reserved spline layer for my landscape and that’s all good, I can place a mesh along my splines though this is just like a road, placing a fence follows the center of the path so that wont work, I created a blueprint for the fence allowing me to move the spline and rotate the axis and to follow one another however I cant work out how to snap it to the landscape. The reserved layer version looks so good for being so wrong haha, it would be nice to place meshes alongside the outside of your landscape spline to create/walls along each side without deforming the landscape, did I miss that? if not :frowning: how would I go about editing my blueprint to ensure the fences are snapped to the landscape? spent days on this to no avail

Apologies for the long question just wanted to provide as much info as possible, first question too so not even sure im posting right haha!

Provided link [spline - Google Drive] photos of reserved spline mesh fence and the blueprint version,
Any help much appreciated!

Personally, I’ve had many problems with landscape splines…
My suggestion is to use something like Proinstance Tool (I don’t know if you have it, but it was in the free monthly content for June 2021, I’m suggesting this because if you are using 4.26 probably you were already using unreal in that day)

Another wonderful (but pricy) alternative is Smart Spline Generator.

If you want to do it by yourself you can use the official Unreal Engine tutorial that explains how to populate splines with meshes.

You can use line traces to check for collisions on the landscape. Get the hit location and set that as the location for the mesh to be created/moved to.

Can also use the normal to rotate it automatically as well.

Thanks guys! I went with the proinstance tool and im flying now!! dont fully understand how the line tracing works so I will work more on that in future :slight_smile:

1 Like

I’m glad you solved it!
Please mark the answer as solution, have a nice day!