Navigation
API > API/Runtime > API/Runtime/Engine
A runtime optimized representation of a FRichCurve. It consumes less memory and evaluates faster.
| Name | FCompressedRichCurve |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/RichCurve.h |
| Include Path | #include "Curves/RichCurve.h" |
Syntax
USTRUCT ()
struct FCompressedRichCurve
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCompressedRichCurve() |
Curves/RichCurve.h |
Classes
| Name | Remarks |
|---|---|
| TConstantValueNumKeys |
Structs
| Name | Remarks |
|---|---|
| FStaticEvalArgs | Encapsulates the StaticEval arguments. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CompressedKeys | TArray< uint8 > | Compressed keys, used only outside of the editor | Curves/RichCurve.h | |
| CompressionFormat | TEnumAsByte< ERichCurveCompressionFormat > | Compression format used by CompressedKeys | Curves/RichCurve.h | |
| ConstantValueNumKeys | TConstantValueNumKeys | If the compression format is constant, this is the value returned Inline here to reduce the likelihood of accessing the compressed keys data for the common case of constant/zero/empty curves When a curve is linear/cubic/mixed, the constant float value isn't used and instead we use the number of keys | Curves/RichCurve.h | |
| KeyTimeCompressionFormat | TEnumAsByte< ERichCurveKeyTimeCompressionFormat > | Compression format used to pack the key time | Curves/RichCurve.h | |
| PostInfinityExtrap | TEnumAsByte< ERichCurveExtrapolation > | Post-infinity extrapolation state | Curves/RichCurve.h | |
| PreInfinityExtrap | TEnumAsByte< ERichCurveExtrapolation > | Pre-infinity extrapolation state | Curves/RichCurve.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float Eval
(
float InTime, |
Evaluate this rich curve at the specified time | Curves/RichCurve.h | |
void PopulateCurve
(
FRichCurve& OutCurve |
Populate RichCurve with decompressed key-data | Curves/RichCurve.h | |
bool Serialize
(
FArchive& Ar |
ICPPStructOps interface | Curves/RichCurve.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float StaticEval
(
const FStaticEvalArgs& Args |
Evaluate this rich curve at the specified time | Curves/RichCurve.h | |
static float StaticEval
(
ERichCurveCompressionFormat CompressionFormat, |
Evaluate this rich curve at the specified time | Curves/RichCurve.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FCompressedRichCurve& Other |
Curves/RichCurve.h | ||
bool operator==
(
const FCompressedRichCurve& Other |
Curves/RichCurve.h |