FNameCurve

Implements a curve of FNames.

Windows
MacOS
Linux

Inheritance Hierarchy

FIndexedCurve

FNameCurve

References

Module

Engine

Header

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

Include

#include "Curves/NameCurve.h"

Syntax

struct FNameCurve : public FIndexedCurve

Remarks

Implements a curve of FNames.

Variables

Name Description

Public variable

TArray< FNameCu...

 

Keys

Sorted array of keys

Destructors

Name Description

Public function Virtual

~FNameCurve()

Virtual destructor.

Functions

Name Description

Public function

FKeyHandle

 

AddKey

(
    float InTime,
    const FName& InValue,
    FKeyHandle KeyHandle
)

Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key.

Public function

void

 

DeleteKey

(
    FKeyHandle KeyHandle
)

Remove the specified key from the curve.

Public function Const

FKeyHandle

 

FindKey

(
    float KeyTime,
    float KeyTimeTolerance
)

Finds a key a the specified time.

Public function

FNameCurveKe...

 

GetKey

(
    FKeyHandle KeyHandle
)

Get a key.

Public function Const

FNameCurveKe...

 

GetKey

(
    FKeyHandle KeyHandle
)

Get a key.

Public function Const

const TArray...

 

GetKeys()

Read-only access to the key collection.

Public function

FKeyHandle

 

UpdateOrAddKey

(
    float InTime,
    const FName& InValue,
    float KeyTimeTolerance
)

Finds the key at InTime, and updates its value.

Overridden from FIndexedCurve

Name Description

Public function Virtual Const

FIndexedCurv...

 

Duplicate()

Allocates a duplicate of the curve

Public function Virtual Const

float

 

GetKeyTime

(
    FKeyHandle KeyHandle
)

Get the time for the Key with the specified index.

Public function Virtual Const

int32

 

GetNumKeys()

Get number of keys in curve.

Public function Virtual

void

 

SetKeyTime

(
    FKeyHandle KeyHandle,
    float NewTime
)

Move a key to a new time.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss