FCompressedRichCurve

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

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< ERichCurveCompressionFormat >

 

CompressionFormat

Compression format used by CompressedKeys

Public variable

TConstantValueNumKeys

 

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< ERichCurveKeyTimeCompressionFormat >

 

KeyTimeCompressionFormat

Compression format used to pack the key time

Public variable

TEnumAsByte< ERichCurveExtrapolation >

 

PostInfinityExtrap

Post-infinity extrapolation state

Public variable

TEnumAsByte< ERichCurveExtrapolation >

 

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 CompressionFormat,
    ERichCurveKeyTimeCompressionFormat KeyTimeCompressionFormat,
    ERichCurveExtrapolation PreInfinityExtrap,
    ERichCurveExtrapolation PostInfinityExtrap,
    TConstantValueNumKeys ConstantValueNumKeys,
    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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback