unreal-splines

Design and implement spline-driven paths, meshes, and movement in Unreal Engine 5.8.

Updated May 28, 2023
One-click install
npx skills add https://github.com/steveulrich/ProjectB --skill unreal-splines-steveulrich
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unreal-splines
Source: https://github.com/steveulrich/ProjectB/tree/main/.cursor/skills/unreal-splines
Command: npx skills add https://github.com/steveulrich/ProjectB --skill unreal-splines-steveulrich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building spline-based systems in Unreal Engine often leads to subtle bugs: actors moving at inconsistent speeds, meshes twisting or stretching, objects bunching on curves, and duplicated generated geometry. This Skill provides correct patterns for choosing between Spline Components, Spline Mesh Components, Landscape Splines, and PCG spline tools, and for implementing them without the common pitfalls. ## Core Features & Use Cases - System selection guidance: Decide between USplineComponent for path queries, per-segment Spline Mesh Components for deformed geometry, ISM/HISM for rigid repeated placement, Landscape Splines for terrain deformation, and PCG for procedural population. - Distance-based motion patterns: Implement constant-speed travel, closest-progress queries, and uniform spacing using arc-length distance rather than input keys. - Troubleshooting reference: Diagnose twisting, stretching, bunching, duplication, closed-loop seams, collision mismatches, and network replication disagreements. - Use Case: You need an editable Blueprint road tool where designers drag spline points and see deformed road segments plus evenly spaced fence posts. The Skill walks you through the actor layout, Construction Script rebuild logic, spacing math from Get Spline Length, and verification steps. ## Quick Start Use the unreal-splines skill to design and implement a spline-based road with editable Blueprint controls in Unreal Engine 5.8.

Frequently Asked Questions about unreal-splines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I move an actor along a spline at constant speed in Unreal Engine?▼

Advance a distance variable by SpeedCmPerSec multiplied by DeltaSeconds, wrap or clamp it against Get Spline Length, then sample Get Transform at Distance Along Spline in World space. Do not use input keys, since parametric distance is not uniform.

What is the difference between Spline Component and Spline Mesh Component?▼

A Spline Component stores path data, transforms, and distance queries but renders nothing. A Spline Mesh Component deforms one mesh between exactly two endpoints, so continuous bent geometry needs one Spline Mesh Component per spline segment.

Should I use Landscape Splines or Spline Mesh for roads in UE5?▼

Use Landscape Splines when the road must raise, lower, or paint Landscape terrain on a dedicated Spline Edit Layer. Use Spline Mesh Components when the road is authored as deformable modular segments independent of Landscape.

Why does my spline mesh twist or stretch on curves?▼

Twisting usually comes from inconsistent up vectors, point roll, or extreme tangent changes; stretching comes from segments too long for the source mesh. Set a stable up-vector convention, match the mesh Forward Axis, and increase segment count.

How do I place evenly spaced objects along a spline?▼

Compute count from Get Spline Length using round(length / targetSpacing), then derive actualSpacing as length divided by count and sample transforms at index times actualSpacing. Use ISM or HISM instances for rigid repeats instead of deforming them with Spline Mesh.

Why do generated spline objects duplicate when I edit points in the editor?▼

The Construction Script is appending new components without removing old ones. Store generated components in an array and destroy or clear them before each rebuild so generation stays idempotent.