Navigation
API > API/Runtime > API/Runtime/Engine
Implements a curve of FNames.
| Name | FNameCurve |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/NameCurve.h |
| Include Path | #include "Curves/NameCurve.h" |
Syntax
USTRUCT ()
struct FNameCurve : public FIndexedCurve
Inheritance Hierarchy
- FIndexedCurve → FNameCurve
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FNameCurve() |
Virtual destructor. | Curves/NameCurve.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Keys | TArray< FNameCurveKey > | Sorted array of keys | Curves/NameCurve.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FKeyHandle AddKey
(
float InTime, |
Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key. | Curves/NameCurve.h | |
void DeleteKey
(
FKeyHandle KeyHandle |
Remove the specified key from the curve. | Curves/NameCurve.h | |
FKeyHandle FindKey
(
float KeyTime, |
Finds a key a the specified time. | Curves/NameCurve.h | |
FNameCurveKey & GetKey
(
FKeyHandle KeyHandle |
Get a key. | Curves/NameCurve.h | |
FNameCurveKey GetKey
(
FKeyHandle KeyHandle |
Curves/NameCurve.h | ||
const TArray< FNameCurveKey > & GetKeys() |
Read-only access to the key collection. | Curves/NameCurve.h | |
FKeyHandle UpdateOrAddKey
(
float InTime, |
Finds the key at InTime, and updates its value. | Curves/NameCurve.h |
Overridden from FIndexedCurve
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FIndexedCurve * Duplicate() |
Allocates a duplicate of the curve | Curves/NameCurve.h | |
virtual float GetKeyTime
(
FKeyHandle KeyHandle |
Get the time for the Key with the specified index. | Curves/NameCurve.h | |
virtual int32 GetNumKeys() |
Get number of keys in curve. | Curves/NameCurve.h | |
virtual void SetKeyTime
(
FKeyHandle KeyHandle, |
Move a key to a new time. | Curves/NameCurve.h |