Guides
Railing tool
How BP_TimberRailingSpline lays a railing along a spline, every Details panel variable, and the results it was tested against.
BP_TimberRailingSpline builds a whole railing from a spline you draw. For step-by-step setups (stairs, joins, gates, long runs) see Railing recipes.
Components#
- Spline
- Eight Instanced Static Mesh components: post, plain post, lantern post, upper rail, lower rail, baluster, rope swag and paper lantern. An Instanced Static Mesh component draws many copies of one mesh cheaply.
- 16 point lights for the paper lanterns.
It builds everything in the Construction Script; nothing ticks at runtime. Post, rail and baluster instances carry box collision (BlockAll). Swags and paper lanterns do not collide.
How it lays the railing#
- The number of spans is the spline length divided by
PostSpacing, rounded (at least 1). Posts are then spaced at exactly equal distances, so both ends always land on a post. - Each span gets an upper and a lower rail pitched to the slope between its two posts, balusters that stay vertical (three per 240 cm; the count scales with span length) and a rope swag.
- Rail heights follow the slope so the rail top always meets the post cap: upper rail centre = 125 − 10 / cos(pitch) − 20 × tan(pitch) cm, and the lower rail sits 80 cm below it.
- Posts turn to follow the spline.
- Spans steeper than
MaxPitchDegare skipped and reported with an on-screen message.
Variables#
Railing — Layout#
| Variable | Default | What it does |
|---|---|---|
PostSpacing |
240 | Target post distance in cm, clamped to 150–300 |
bClosedLoop |
false | Close the spline into a loop (no duplicate post at the seam) |
bStartPost / bEndPost |
true / true | Put a post at the first / last point of an open spline |
bRopeLashings |
true | Rope-lashed posts; off = SM_TimberRail_Post_Plain and no swags. Lantern posts keep their rope lashing either way (there is no plain lantern post); set LanternEveryNSpans to 0 for a completely rope-free run |
bRopeSwags |
true | Rope swag in every span (needs bRopeLashings) |
MaxPitchDeg |
40 | Steepest span that is built |
Railing — Ground#
| Variable | Default | What it does |
|---|---|---|
bSnapToGround |
false | Trace down at every post and stand it on whatever is below (complex collision, ignores itself) |
MaxSnapDistance |
300 | Trace reach up and down in cm |
Railing — Lanterns#
| Variable | Default | What it does |
|---|---|---|
LanternEveryNSpans |
2 | Every Nth interior post becomes a lantern post with a hanging paper lantern; 0 = none |
bHangingLanternLights |
false | Real point lights in the paper lanterns (first 16 lanterns per actor, 2200 K, 450 cm reach, no shadows) |
LanternLightLumens |
400 | Their intensity |
LanternGlow |
3 | Paper emissive of the hanging lanterns (see Glow values) |
LanternPaperMaterial |
MI_Paper_ChochinRed |
Paper finish |
Railing — Materials#
| Variable | Default | What it does |
|---|---|---|
TimberMaterial / EndgrainMaterial |
MI_Timber_Brown / MI_Endgrain_Brown |
Finish; use a matching pair: Brown, WeatheredGrey or RedLacquer |
Railing — Variation#
| Variable | Default | What it does |
|---|---|---|
RandomSeed |
7 | Seed for the variation below |
PostYawJitterDeg |
1.0 | Small random post rotation so a long run does not look machine-made |
ToneJitter |
0.08 | Per-piece tone variation (per-instance custom data) |
Tested results#
Logged by the build scripts in UE 5.8:
- A straight 12 m spline builds 6 posts (2 of them lantern posts), 5 upper and 5 lower rails, 15 balusters, 5 swags and 2 paper lanterns.
- A closed 9.6 m square builds 16 posts and 16 spans with no duplicate post at the seam.
- A 240 cm run rising 120 cm pitches its rails at 26.57° with all 16 rail-end corners inside the posts.
- A 90° arc of 6 m radius keeps all 64 rail-end corners inside the posts.