Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Curves
Inheritance Hierarchy
- FIndexedCurve
- FStringCurve
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Curves/StringCurve.h |
| Include | #include "Curves/StringCurve.h" |
Syntax
USTRUCT ()
struct FStringCurve : public FIndexedCurve
Remarks
Implements a curve of FStrings.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | DefaultValue | Default value | |
| TArray< FStringCurveKey > | Keys | Sorted array of keys |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FKeyHandle | AddKey
(
float InTime, |
Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key. | |
| void | Clears the default value for this curve if it has been set. | ||
| void | DeleteKey
(
FKeyHandle KeyHandle |
Remove the specified key from the curve. | |
| FString | Evaluate the curve at the specified time. | ||
| FKeyHandle | FindKey
(
float KeyTime, |
Finds a key a the specified time. | |
| FString | Get the default value for the curve | ||
| FStringCurveKey & | GetKey
(
FKeyHandle KeyHandle |
Get a key. | |
| FStringCurveKey | GetKey
(
FKeyHandle KeyHandle |
||
| const TArray< FStringCurveKey > & | GetKeys () |
Read-only access to the key collection. | |
| FString | GetKeyValue
(
FKeyHandle KeyHandle |
Get the value for the Key with the specified index. | |
| bool | HasAnyData () |
Check whether this curve has any data or not | |
| void | Tries to reduce the number of keys required for accurate evaluation (removing duplicates) | ||
| void | SetDefaultValue
(
const FString& InDefaultValue |
Set the default value of the curve. | |
| void | SetKeyValue
(
FKeyHandle KeyHandle, |
Assign a new value to a key. | |
| FKeyHandle | UpdateOrAddKey
(
float InTime, |
Finds the key at InTime, and updates its value. |
Overridden from FIndexedCurve
| Type | Name | Description | |
|---|---|---|---|
| FIndexedCurve * | Duplicate () |
Allocates a duplicate of the curve | |
| float | GetKeyTime
(
FKeyHandle KeyHandle |
Get the time for the Key with the specified index. | |
| int32 | GetNumKeys () |
Get number of keys in curve. | |
| void | SetKeyTime
(
FKeyHandle KeyHandle, |
Move a key to a new time. |