Navigation
API > API/Editor > API/Editor/CurveEditor > API/Editor/CurveEditor/FCurveModel
Description
Finds the key before and after InTime.
If there is a key at InTime, then OutPreviousKeyHandle and OutNextKeyHandle are set to the same value. If there are multiple keys at InTime (stacked), the implementation can return an arbitrary one as long as it is consistent (e.g. always the "first one") provided the internal state has not changed.
| Name | GetClosestKeysTo |
| Type | function |
| Header File | /Engine/Source/Editor/CurveEditor/Public/CurveModel.h |
| Include Path | #include "CurveModel.h" |
| Source | /Engine/Source/Editor/CurveEditor/Private/CurveModel.cpp |
virtual void GetClosestKeysTo
(
double InTime,
TOptional < FKeyHandle > & OutPreviousKeyHandle,
TOptional < FKeyHandle > & OutNextKeyHandle
) const
Parameters
| Name | Remarks |
|---|---|
| InTime | The time near which to search for keys |
| OutPreviousKeyHandle | The key with time <= InTime that is closest to InTime. Unset if there is no such key. |
| OutNextKeyHandle | The key with time >= InTime that is closest to InTime. Unset if there is no such key. |