FNameCurve::UpdateOrAddKey

Finds the key at InTime, and updates its value.

References

Module

Engine

Header

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

Include

#include "Curves/NameCurve.h"

Source

/Engine/Source/Runtime/Engine/Private/Curves/NameCurve.cpp

Syntax

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

Remarks

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.

Parameters

Parameter

Description

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.

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