Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FStringCurve
Description
Finds the key at InTime, and updates its value. If it can't find the key within the KeyTimeTolerance, it adds one at that time.
| Name | UpdateOrAddKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/StringCurve.h |
| Include Path | #include "Curves/StringCurve.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Curves/StringCurve.cpp |
FKeyHandle UpdateOrAddKey
(
float InTime,
const FString & InValue,
float KeyTimeTolerance
)
Parameters
| Name | Remarks |
|---|---|
| InTime | The time at which the key should be added or updated. |
| InValue | The value of the key. |
| KeyTimeTolerance | The tolerance used for key time equality. |