How to get a value from a runtime float curve (structure)?

Unfortunately, you cannot evaluate FRuntimeFloatCurves (or the FRuntimeVectorCurve) in blueprints as of now since the function is not exposed.
If you are able to use C++ however, you can make yourself a function library which exposes them, this is how you evaluate a Runtime Float Curve

.h

/** Evaluates the value of a Runtime Float Curve using the given time. */
UFUNCTION(BlueprintPure, Category = "Math|RuntimeFloatCurve")
	static float GetRuntimeFloatCurveValue(const FRuntimeFloatCurve& InCurve, float InTime);

.cpp

float UMyFunctionLibrary::GetRuntimeFloatCurveValue(const FRuntimeFloatCurve& InCurve, float InTime)
{
	// Evaluate the curve
	return InCurve.GetRichCurveConst()->Eval(InTime);
}

In Blueprints
Screenshot 2022-09-10 100958

5 Likes