Navigation
API > API/Plugins > API/Plugins/Paper2D > API/Plugins/Paper2D/UPaperFlipbook
Description
Returns the keyframe index that covers the specified time (in seconds), or INDEX_NONE if none exists. When bClampToEnds is true, it will choose the first or last keyframe if the time is out of range.
| Name | GetKeyFrameIndexAtTime |
| Type | function |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperFlipbook.h |
| Include Path | #include "PaperFlipbook.h" |
| Source | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Private/PaperFlipbook.cpp |
UFUNCTION (BlueprintCallable, Category="Sprite")
int32 GetKeyFrameIndexAtTime
(
float Time,
bool bClampToEnds
) const