Navigation
API > API/Runtime > API/Runtime/Engine
A rich, editable float curve
| Name | FRealCurve |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/RealCurve.h |
| Include Path | #include "Curves/RealCurve.h" |
Syntax
USTRUCT ()
struct FRealCurve : public FIndexedCurve
Inheritance Hierarchy
- FIndexedCurve → FRealCurve
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRealCurve() |
Curves/RealCurve.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DefaultValue | float | Default value | Curves/RealCurve.h |
|
| PostInfinityExtrap | TEnumAsByte< ERichCurveExtrapolation > | Post-infinity extrapolation state | Curves/RealCurve.h | |
| PreInfinityExtrap | TEnumAsByte< ERichCurveExtrapolation > | Pre-infinity extrapolation state | Curves/RealCurve.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FKeyHandle AddKey
(
float InTime, |
Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key. | Curves/RealCurve.h | |
virtual void BakeCurve
(
float SampleRate, |
Curves/RealCurve.h | ||
virtual void BakeCurve
(
float SampleRate |
Bake curve given the sample rate | Curves/RealCurve.h | |
void ClearDefaultValue() |
Removes the default value for this curve. | Curves/RealCurve.h | |
virtual void DeleteKey
(
FKeyHandle KeyHandle |
Remove the specified key from the curve. | Curves/RealCurve.h | |
virtual float Eval
(
float InTime, |
Evaluate this curve at the specified time | Curves/RealCurve.h | |
FKeyHandle FindKey
(
float KeyTime, |
Finds a key a the specified time | Curves/RealCurve.h | |
float GetDefaultValue() |
Get the default value for the curve | Curves/RealCurve.h | |
virtual ERichCurveInterpMode GetKeyInterpMode
(
FKeyHandle KeyHandle |
Curves/RealCurve.h | ||
virtual TPair< float, float > GetKeyTimeValuePair
(
FKeyHandle KeyHandle |
Returns a | Curves/RealCurve.h | |
virtual float GetKeyValue
(
FKeyHandle KeyHandle |
Returns the value of the specified key | Curves/RealCurve.h | |
virtual void GetTimeRange
(
float& MinTime, |
Get range of input time values. | Curves/RealCurve.h | |
virtual void GetValueRange
(
float& MinValue, |
Get range of output values. | Curves/RealCurve.h | |
bool HasAnyData() |
Check whether this curve has any data or not | Curves/RealCurve.h | |
bool KeyExistsAtTime
(
float KeyTime, |
True if a key exists already, false otherwise | Curves/RealCurve.h | |
virtual void ReadjustTimeRange
(
float NewMinTimeRange, |
Resize curve length to the [MinTimeRange, MaxTimeRange] | Curves/RealCurve.h | |
virtual void RemapTimeValue
(
float& InTime, |
Remap InTime based on pre and post infinity extrapolation values | Curves/RealCurve.h | |
virtual void RemoveRedundantKeys
(
float Tolerance, |
Remove redundant keys, comparing against Tolerance (and optional use of sample-rate for additional testing) | Curves/RealCurve.h | |
virtual void RemoveRedundantKeys
(
float Tolerance, |
Curves/RealCurve.h | ||
virtual void Reset() |
Clear all keys. | Curves/RealCurve.h | |
void SetDefaultValue
(
float InDefaultValue |
Set the default value of the curve | Curves/RealCurve.h | |
virtual void SetKeyInterpMode
(
FKeyHandle KeyHandle, |
Curves/RealCurve.h | ||
virtual void SetKeyValue
(
FKeyHandle KeyHandle, |
Set the value of the specified key | Curves/RealCurve.h | |
virtual FKeyHandle UpdateOrAddKey
(
float InTime, |
Finds the key at InTime, and updates its value. | Curves/RealCurve.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetKeyIndex
(
float KeyTime, |
Curves/RealCurve.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CycleTime
(
float MinTime, |
Curves/RealCurve.h |