Pages in Documentation
3 Spline Tools
Doors V2 UE5
Step by Step
2 Tips & FAQ
6 FAQ + Tips
2A Generic BP
2B Gen Examples
UI 1 - Part 1
Ui 1 - Part 2
2 UI Features
3 Get Started
4 Info Map
5 BP Actors
6 Manage Clients
2 Get Started
3 Info Map
5 More BP Actors
[2 B] Generic Spline Blueprint Examples
Practical Examples for the use of the generic spline blueprint (BP_GenericMeshesOnSpline)
Example 1: Kerb For A Small Zen Garden
In this example a 20cm kerb is repeated on a spline to frame grass patches in a interior zen garden. This is the most basic type of use for the generic spline actor. Most settings are default settings. Only the mesh needs to be replaced.
Watch the video at the end of this example.
The scene and meshes are not included.
Static Mesh Module
Mesh is not included!
Create a box 20x10x4 units (cm) large and chamfer it with 0.5 units all around. Place it onto the origin (0-0-0) of your modelling program extending to the X-Axis. This is the native orientation for spline meshes in Unreal.
I box-mapped it with X-Y-Z the same size. I always use the same box mapping so single id materials can be used on all box mapped meshes.
Once imported I add a box simplified collision to it. To avoid scaling problems you can convert the collision box to convex (optional).
I also created a 2nd UV in the editor from the first one for the lightmap. I used 24 as the lightmap size.
Place the blueprint BP_GenericMeshesOnSpline into the map. It will have the default railing mesh on it. In the Meshes section replace the railing mesh with the new kerb mesh. That's all you have to do for a simple example like this before you can lay out the spline.
Use the 'Orientation' if a mesh happens to point into the wrong direction.
A mesh may not orientate from one side but from the middle. You can compensate this with the MeshTransform Location in the Mesh section. Use X to move the mesh along the spline. Y will move it off the spline and Z will alter its height position.
Watch a 4 minute video recorded while I was creating the garden kerbs.
Example 2: Decorative Wood Slats
In this example I use the GenericMeshOnSpline blueprint to add decorative vertical wood slats. A common element in architecture.
This example uses 2 sections and 2 meshes. The end section will have a single slat while the main section uses a modular slat set with the background black wall strip attached.
This scene is from a different project that is not included in the marketplace package.
On the right is a close up of the slats in the modelling program. I baked the meshes but that's optional.
On the left side are the 3 meshes used:
- A single slat for the end
- A 3 slats modular mesh
- A 10 slats modular mesh
Don't forget to place the left side of the mesh onto the origin point 0,0,0 in your modelling program.
the scene and meshes are not included.
The mesh sequences are still just a single mesh. But this time we need two different meshes. Because they don't alternate along the spline 0-1-0-1-0-1 we need to set them in separate mesh sequences. We need them to be placed on the spline as 0-0-0-0-0-0-1. This will be done in the section.
Both meshes are made for splines and don't need any adjustments.
See example 1 above for more options to adjust the mesh origin.
Section  has the repeating mesh. Everything is already set up correctly by default.
Section  will contain the end mesh with a single slat and no black wall strip attached to end the spline placement. Set the 'SectionDistanceType' to 'From Placement'. This will take the space needed by the placement settings for this mesh.
- Placement settings:
- MeshGroupID = 
- PlacementMode = Manual
- AmountOfInstances = 1
Summary: Section 1 is set to manual and will use the space for 1 single slat mesh. Section 0 will take the rest of the space and scale the meshes to fit exactly into the available space.
Per Instance RandomYou can use this node setup in your material to avoid repetition of the texture. It randomly shifts the UVs a bit for each instance of the mesh along the spline.
Just plug it into the UVs of the textures and use that material for the meshes in the spline.
Watch a 3 minute video recorded while I was creating a few slat sections in a project.
Example 3: Row of Bushes
This example creates are random looking row of bushes on a small strip of soil along a driveway.
It uses a sequence of 3 bushes with random transforms and the gaps between the meshes are increased.
The scene and the bushes are not included. Those are speed tree bushes.
There are 3 meshes used. A smaller bush repeated 5 times and 2
types of larger bushes placed once each. Then it repeats:
Place all meshes into the first Mesh Sequence . Add 3 Meshes as seen on the right.
For the first mesh  the Amount is set to 5 and the Overlap to -23. The mesh will be repeated 5 times with a extra gap of 23 units. Negative overlaps will cause a gap.
The 2nd mesh  and the 3rd mesh  are only used once and they don't have an extra gap larger than their bounding box.
There is only one section used for this. All section settings are default.
Set the PlacementMode to 'Fill but don't stretch' so meshes are not stretched along the spline.
To get random placement offsets activate the 'UseRandom' tick box. Default values should be good for most cases. You can tweak them in 'RandomTransform'. A location value of 25 in X will place the mesh randomly between +25 and -25 from the default point.
Clicking on the tick box 'Generate Random Stream' will re- generate a new stream of random values. Use this if you are not happy with the randomness.
Watch a 5 minute video recorded while I was creating this planting improving it till it works well for the scene.
Example 4: Rows of ChairsIn this example I'm placing chairs in multiple rows for the audience of an event. It uses a bit of a random placement. It has multiple sections and shows how to use 2 sets on the same spline to offset every 2nd row of chairs.
The example chair is not included but it works with any chair.
Chairs SectionThe section that contains the chairs has its default settings. 'Fill Remaining' means that the section will grab whatever space is left. The 'SectionDistance' is used as a weight value in case there are more than one sections set to 'Fill Remaining'. If one section's distance is set to 100 and the other to 50 then the first section will get 2/3 of the space and the 2nd section will get 1/3 of the space.
Placement is set to 'Fill but don't stretch' to not scale the chairs here.
The random values offset each chair slightly and rotate them a bit.
Fixed Gap Section
The middle section  is set to a fixed gap. The distance will be exactly what is set here. A gap is meant to not have any meshes. Manually remove all placements here.
Section  is the same as section . You can copy the settings of one section to another section with the right click menu.
SetCopies can be used to copy the set placed on a spline. To get multiple rows we add an array element and set the number of copies to larger than '0'. Then adjust the Y-LocationOffset to incrementally copy the chairs.
Offsetting every 2nd row of chairs
You can have more than one set of meshes along a spline. Use this feature to offset every 2nd row of chairs.
- First reduce the amount of rows to '3' in the first set and double the distance to '-160' units.
- Then add another 'Section Set' clicking on [+]
- Copy Set  to the new Set  with the right click menu.
- Use the 'SetTransform - Location' in Set  to offset the the chairs one row plus half a chair to the side.
- Reduce the amount of chairs in Set  to 2 rows.