UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSplineCurves Struct Reference

#include <SplineComponent.h>

Public Member Functions

bool operator== (const FSplineCurves &Other) const
 
bool operator!= (const FSplineCurves &Other) const
 
ENGINE_API void UpdateSpline (bool bClosedLoop=false, bool bStationaryEndpoints=false, int32 ReparamStepsPerSegment=10, bool bLoopPositionOverride=false, float LoopPosition=0.0f, const FVector &Scale3D=FVector(1.0f))
 
ENGINE_API float GetSegmentLength (const int32 Index, const float Param, bool bClosedLoop=false, const FVector &Scale3D=FVector(1.0f)) const
 
ENGINE_API float GetSplineLength () const
 

Static Public Member Functions

static FSplineCurves FromSplineInterface (const FSpline &InProxy)
 

Public Attributes

FInterpCurveVector Position
 
FInterpCurveQuat Rotation
 
FInterpCurveVector Scale
 
FInterpCurveFloat ReparamTable
 
uint32 Version = 0xffffffff
 

Member Function Documentation

◆ FromSplineInterface()

static FSplineCurves FSplineCurves::FromSplineInterface ( const FSpline InProxy)
inlinestatic

◆ GetSegmentLength()

float FSplineCurves::GetSegmentLength ( const int32  Index,
const float  Param,
bool  bClosedLoop = false,
const FVector Scale3D = FVector(1.0f) 
) const

Returns the length of the specified spline segment up to the parametric value given

◆ GetSplineLength()

float FSplineCurves::GetSplineLength ( ) const

Returns total length along this spline

◆ operator!=()

bool FSplineCurves::operator!= ( const FSplineCurves Other) const
inline

◆ operator==()

bool FSplineCurves::operator== ( const FSplineCurves Other) const
inline

◆ UpdateSpline()

void FSplineCurves::UpdateSpline ( bool  bClosedLoop = false,
bool  bStationaryEndpoints = false,
int32  ReparamStepsPerSegment = 10,
bool  bLoopPositionOverride = false,
float  LoopPosition = 0.0f,
const FVector Scale3D = FVector(1.0f) 
)

Update the spline's internal data according to the passed-in params

Parameters
bClosedLoopWhether the spline is to be considered as a closed loop.
bStationaryEndpointsWhether the endpoints of the spline are considered stationary when traversing the spline at non-constant velocity. Essentially this sets the endpoints' tangents to zero vectors.
ReparamStepsPerSegmentNumber of steps per spline segment to place in the reparameterization table
bLoopPositionOverrideWhether to override the loop position with LoopPosition
LoopPositionThe loop position to use instead of the last key
Scale3DThe world scale to override

Member Data Documentation

◆ Position

FInterpCurveVector FSplineCurves::Position

Spline built from position data.

◆ ReparamTable

FInterpCurveFloat FSplineCurves::ReparamTable

Input: distance along curve, output: parameter that puts you there.

◆ Rotation

FInterpCurveQuat FSplineCurves::Rotation

Spline built from rotation data.

◆ Scale

FInterpCurveVector FSplineCurves::Scale

Spline built from scale data.

◆ Version

uint32 FSplineCurves::Version = 0xffffffff

The documentation for this struct was generated from the following files: