FCompressedRichCurve

A runtime optimized representation of a [FRichCurve](API\Runtime\Engine\Curves\FRichCurve).

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Curves/RichCurve.h

Include

#include "Curves/RichCurve.h"

Syntax

struct FCompressedRichCurve

Remarks

A runtime optimized representation of a FRichCurve. It consumes less memory and evaluates faster.

Variables

Name Description

Public variable

TArray< uint8 >

 

CompressedKeys

Compressed keys, used only outside of the editor

Public variable

TEnumAsByte< ER...

 

CompressionFormat

Compression format used by CompressedKeys

Public variable

TConstantValueN...

 

ConstantValueNumKeys

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

Public variable

TEnumAsByte< ER...

 

KeyTimeCompressionFormat

Compression format used to pack the key time

Public variable

TEnumAsByte< ER...

 

PostInfinityExtrap

Post-infinity extrapolation state

Public variable

TEnumAsByte< ER...

 

PreInfinityExtrap

Pre-infinity extrapolation state

Constructors

Name Description

Public function

FCompressedRichCurve()

Functions

Name Description

Public function Const

float

 

Eval

(
    float InTime,
    float InDefaultValue
)

Evaluate this rich curve at the specified time

Public function

bool

 

Serialize

(
    FArchive& Ar
)

ICPPStructOps interface

Public function Static

float

 

StaticEval

(
    ERichCurveCompressionFormat Compres...,
    ERichCurveKeyTimeCompressionFormat ...,
    ERichCurveExtrapolation PreInfinity...,
    ERichCurveExtrapolation PostInfinit...,
    TConstantValueNumKeys ConstantValue...,
    const uint8* CompressedKeys,
    float InTime,
    float InDefaultValue
)

Evaluate this rich curve at the specified time

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FCompressedRichCurve& Other
)

Public function Const

bool

 

operator==

(
    const FCompressedRichCurve& Other
)

Classes

Name

Description

Public struct

TConstantValueNumKeys