Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Animation/CurveSequence.h |
Include |
#include "Animation/CurveSequence.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Animation/CurveSequence.cpp |
void Play
(
const TSharedRef< SWidget > & InOwnerWidget,
bool bPlayLooped,
const float StartAtTime,
bool bRequiresActiveTimer
)
Start playing this curve sequence. Registers an active timer with the widget being animated.
Parameter |
Description |
---|---|
InOwnerWidget |
The widget that is being animated by this sequence. |
bPlayLooped |
True if the curve sequence should play continually on a loop. Note that the active timer will persist until this sequence is paused or jumped to the start/end. |
StartAtTime |
The relative time within the animation at which to begin playing (i.e. 0.0f is the beginning). |
bRequiresActiveTimer |
Whether or not we need to register an active timer on the widget to keep slate ticking while the animation is playing. If that is not necessary in your use case, you can set it to false for a small performance boost |