Skip to content

MotionCurveFunctionLibrary

Lightweight helpers for evaluating runtime vector curves used by Motion camera effects.

UCurveVector Functions (Primary)

These functions work with UCurveVector asset references, which is the preferred approach for curve-driven camera effects.

FunctionDescription
GetCurveVectorValue(InCurve, InTime)Evaluates UCurveVector asset at InTime and returns the resulting FVector. Returns FVector::ZeroVector if null.
GetCurveVectorTimeRange(InCurve)Returns the maximum end time across the X/Y/Z sub-curves. Returns 0.0 if null.

FRuntimeVectorCurve Functions (Legacy)

These functions work with inline FRuntimeVectorCurve properties. Used for properties like CameraTargetOffset that embed curves directly rather than referencing assets.

FunctionDescription
GetRuntimeVectorCurveValue(InCurve, InTime)Evaluates FRuntimeVectorCurve at InTime and returns the resulting FVector.
GetRuntimeVectorTimeRange(InCurve)Returns the maximum end time across the X/Y/Z sub-curves.

Usage

These functions are primarily used by the MotionCameraComponent for camera curve evaluation:

  • UCurveVector functions for asset-referenced curves in FCameraCurveData
  • FRuntimeVectorCurve functions for inline curves like CameraTargetOffset

All functions are exposed to Blueprints via BlueprintPure and categorized under Motion|Curve.

Motion - Advanced First Person Character Controller