Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/FPCGSplineStruct
Description
Return the index of the segment for a given InputKey, and the input key at the segment start. It's for future-proof-ness as even if there is no guarantee a segment start is at an integer input key, right now it is not well supported. If the input key is invalid, returns {INDEX_NONE, 0}.
| Name | GetSegmentStartIndexAndKeyAtInputKey |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGSplineStruct.h |
| Include Path | #include "Data/PCGSplineStruct.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Data/PCGSplineStruct.cpp |
TTuple < int, float > GetSegmentStartIndexAndKeyAtInputKey
(
float InKey
) const