Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- FIndexedCurve
- FAttributeCurve
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AttributeCurve.h |
| Include | #include "Animation/AttributeCurve.h" |
Syntax
struct FAttributeCurve : public FIndexedCurve
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bShouldInterpolate | Whether or not to interpolate between keys of ScripStruct type | |
| TArray< FAttributeKey > | Keys | The keys, ordered by time | |
| const UE::Anim::IAttributeBlendOperator * | Operator | Operator instanced used for interpolating between keys | |
| TObjectPtr< UScriptStruct > | ScriptStruct | Transient UScriptStruct instance representing the underlying value type for the curve | |
| FSoftObjectPath | ScriptStructPath | Path to UScriptStruct to be loaded |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAttributeCurve
(
UScriptStruct* InScriptStruct |
|||
FAttributeCurve
(
const FAttributeCurve& OtherCurve |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FKeyHandle | AddKey
(
float InTime, |
Add a new raw memory key (should be appropriately sized) to the curve with the supplied Time and Value. | |
| FKeyHandle | AddTypedKey
(
float InTime, |
Add a new typed key to the curve with the supplied Time and Value. | |
| bool | CanEvaluate () |
Whether or not the curve can be evaluated, based upon having a valid type and any keys | |
| void | DeleteKey
(
FKeyHandle KeyHandle |
Remove the specified key from the curve. | |
| AttributeType | Evaluate
(
float Time |
Evaluate the curve keys into a temporary value container | |
| void | EvaluateToPtr
(
const UScriptStruct* InScriptStruct, |
Evaluate the curve keys into the provided memory (should be appropriatedly sized) | |
| FKeyHandle | FindKey
(
float KeyTime, |
Finds the key at KeyTime and returns its handle. | |
| FKeyHandle | FindKeyBeforeOrAt
(
float KeyTime |
Gets the handle for the last key which is at or before the time requested. | |
| const TArray< FAttributeKey > & | |||
| TArray< FAttributeKey > | Return copy of contained key-data | ||
| const FAttributeKey & | GetKey
(
FKeyHandle KeyHandle |
Functions for getting keys based on handles | |
| FAttributeKey & | GetKey
(
FKeyHandle KeyHandle |
Functions for getting keys based on handles | |
| TArray< FAttributeKey >::TConstIterator | Const iterator for the keys, so the indices and handles stay valid | ||
| const UScriptStruct * | |||
| void | GetTypedKeys
(
TArray< const AttributeType* >& OutKeys |
Populates OutKeys with typed value-ptrs | |
| bool | HasAnyData () |
Check whether this curve has any data or not | |
| void | ReadjustTimeRange
(
float NewMinTimeRange, |
Used for adjusting the internal key-data when owning object its playlength changes | |
| void | Tries to reduce the number of keys required for accurate evaluation (zero error threshold) | ||
| void | Reset () |
Removes all key data | |
| bool | |||
| void | SetKeys
(
TArrayView< const float > InTimes, |
||
| void | SetScriptStruct
(
UScriptStruct* InScriptStruct |
End FIndexedCurve overrides Sets the underlying type for the curve, only possible when not containing any keys (see Reset) | |
| FKeyHandle | UpdateOrAddKey
(
float InTime, |
Finds the key at InTime, and updates its typed value. | |
| FKeyHandle | UpdateOrAddTypedKey
(
float InTime, |
Finds the key at InTime, and updates its typed value. | |
| FKeyHandle | UpdateOrAddTypedKey
(
float InTime, |
Finds the key at InTime, and updates its typed value. |
Overridden from FIndexedCurve
| Type | Name | Description | |
|---|---|---|---|
| FAttributeCurve * | Duplicate () |
Allocates a duplicate of the curve | |
| float | GetKeyTime
(
FKeyHandle KeyHandle |
Get the time for the Key with the specified index. | |
| int32 | GetNumKeys () |
Begin FIndexedCurve overrides | |
| void | SetKeyTime
(
FKeyHandle KeyHandle, |
Move a key to a new time. This may change the index of the key, so the new key index is returned. |