![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RealCurve.h>
Inheritance diagram for FRealCurve:Static Protected Member Functions | |
| static ENGINE_API void | CycleTime (float MinTime, float MaxTime, float &InTime, int &CycleCount) |
Protected Attributes | |
| virtual int32 | GetKeyIndex (float KeyTime, float KeyTimeTolerance) const PURE_VIRTUAL(FRealCurve |
Protected Attributes inherited from FIndexedCurve | |
| FKeyHandleMap | KeyHandlesToIndices |
Additional Inherited Members | |
Protected Member Functions inherited from FIndexedCurve | |
| void | EnsureAllIndicesHaveHandles () const |
| void | EnsureIndexHasAHandle (int32 KeyIndex) const |
| const int32 * | FindIndex (FKeyHandle KeyHandle) const |
| ENGINE_API int32 | GetIndex (FKeyHandle KeyHandle) const |
| ENGINE_API FKeyHandle | GetKeyHandle (int32 KeyIndex) const |
A rich, editable float curve
|
inline |
|
inline |
Removes the default value for this curve.
|
staticprotectedvirtual |
Resize curve length to the [MinTimeRange, MaxTimeRange] Bake curve given the sample rate Remove redundant keys, comparing against Tolerance (and optional use of sample-rate for additional testing)
| FKeyHandle FRealCurve::FindKey | ( | float | KeyTime, |
| float | KeyTimeTolerance = UE_KINDA_SMALL_NUMBER |
||
| ) | const |
Finds a key a the specified time
|
inline |
Get the default value for the curve
|
inline |
Check whether this curve has any data or not
| bool FRealCurve::KeyExistsAtTime | ( | float | KeyTime, |
| float | KeyTimeTolerance = UE_KINDA_SMALL_NUMBER |
||
| ) | const |
True if a key exists already, false otherwise
|
inlinevirtual |
Set the default value of the curve
| virtual FKeyHandle FRealCurve::AddKey(float InTime, float InValue, const bool bUnwindRotation=false, FKeyHandle KeyHandle=FKeyHandle()) PURE_VIRTUAL(FRealCurve |
Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key.
| bUnwindRotation | When true, the value will be treated like a rotation value in degrees, and will automatically be unwound to prevent flipping 360 degrees from the previous key |
| KeyHandle | Optionally can specify what handle this new key should have, otherwise, it'll make a new one |
| float FRealCurve::DefaultValue |
Default value
| virtual void virtual GetTimeRange (float& MinTime, float& MaxTime) const PURE_VIRTUAL(FRealCurve void virtual GetValueRange (float& MinValue, float& MaxValue) const PURE_VIRTUAL(FRealCurve void virtual Reset () PURE_VIRTUAL(FRealCurve void virtual RemapTimeValue (float& InTime, float& CycleValueOffset) const PURE_VIRTUAL(FRealCurve float FRealCurve::Eval(float InTime, float InDefaultValue=0.0f) const PURE_VIRTUAL(FRealCurve |
Get range of input time values. Outside this region curve continues constantly the start/end values. Get range of output values. Clear all keys. Remap InTime based on pre and post infinity extrapolation values Evaluate this curve at the specified time
|
protected |
| virtual ERichCurveInterpMode FRealCurve::GetKeyInterpMode(FKeyHandle KeyHandle) const PURE_VIRTUAL(FRealCurve |
| virtual TPair<float, float> FRealCurve::GetKeyTimeValuePair(FKeyHandle KeyHandle) const PURE_VIRTUAL(FRealCurve |
Returns a <Time, Value> pair for the specified key
| virtual void virtual SetKeyValue (FKeyHandle KeyHandle, float NewValue, bool bAutoSetTangents = true) PURE_VIRTUAL(FRealCurve float FRealCurve::GetKeyValue(FKeyHandle KeyHandle) const PURE_VIRTUAL(FRealCurve |
Set the value of the specified key Returns the value of the specified key
| TEnumAsByte<ERichCurveExtrapolation> FRealCurve::PostInfinityExtrap |
Post-infinity extrapolation state
| TEnumAsByte<ERichCurveExtrapolation> FRealCurve::PreInfinityExtrap |
Pre-infinity extrapolation state
| virtual void virtual DeleteKey (FKeyHandle KeyHandle) PURE_VIRTUAL(FRealCurve FKeyHandle FRealCurve::UpdateOrAddKey(float InTime, float InValue, const bool bUnwindRotation=false, float KeyTimeTolerance=UE_KINDA_SMALL_NUMBER) PURE_VIRTUAL(FRealCurve |