HELP: Adding additional models alongside a spline generated road

I want to add guard rails and other details along side my road.

I know I can simply add another spline ( I guess one for each new type of item I want to place)
but I’m wondering if there’s a smarter way to do this.

I noticed you can add additional models under the Spline Meshes - Array Elements but this breaks up the road model.

Hopefully I’m just missing a setting somewhere because this is what it gives me

I also found this tutorial but from what I understand this is just to use items lined up with their own separate spline just to make placing them easier. It doesn’t look like it will conform with the shape of the landscape.

Populating Meshes Along a Spline | Tips & Tricks | Unreal Engine

The multiple meshes are for when you have multiple meshes of road that you want to put randomly along the spline.

I suggest making a road section mesh already with the rails and all the things that won’t need to be changed along this spline.

Usually guardrails do not exactly conform to the terrain.
Can you imagine the people installing them having to bend them up to conform? :laughing:

Solutions that conform are possible. But expensive to render. Or you have to actor merge later on.

The idea of creating a mesh with the rails is probably the best - but the rails will deform.

Making the rails mesh have the same pivot point as the road mesh goes a long way towards setting things up.

The alternative here is to use the spline as a guiding path to place instanced meshes (which will also cost a lot less).
To do it, you would just create a bluetility script that moves instances around to distribute them along the spline.
It’s not super easy, but it’s not really complex either.
This won’t allow “bends”, so it may not be ideal for all pieces of the road.
However it can work with a “mixed” workflow if you set it up for it in the road spline code…

Let’s remind everyone that all a spline is, is a list of data points represented visually.
Accessing those point values you can do a lot. Including creating procedural meshes …