PAPER2UPaperFlipbook::GetKeyFrameIndexAtTime

Returns the keyframe index that covers the specified time (in seconds), or INDEX_NONE if none exists.

Windows
MacOS
Linux

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperFlipbook.h

Include

#include "PaperFlipbook.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Sprite")
int32 GetKeyFrameIndexAtTime
(
    float Time,
    bool bClampToEnds
) const

Remarks

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.

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