Edit Actor Splines
Read and edit spline points
For an ordinary spline component, call GetSplineData with ActorName, exact ComponentName, and optional CoordinateSpace=Local|World. Pass its SnapshotHash to ApplySplinePatch with an ordered Operations array (Add, Remove, SetLocation, SetTangents, SetRotation, SetScale, SetType, or SetClosedLoop). Preview first; execution needs bDryRun=false and the preview PlanHash. Insertion and deletion shift later indices in the same patch. SetSplineMesh edits one spline-mesh component with local Start, StartTangent, End, and EndTangent; optional scales, roll, forward axis, and static mesh can be supplied. For Landscape splines, use the tools in “Edit Landscape Splines.”
ApplySplinePatch supports Blueprint SCS spline components and verifies the current component again after construction reruns. It rejects splines already modified by a construction script or configured to pass their points to that script. A reconstruction or readback failure may retain changes in the Undo transaction; inspect the reported state before retrying.
For example, if you remove a point and then edit a later point, use its index after the removal. Read the spline back afterward and check the points, their order, and whether the loop is closed.