FCurveSequence::Play

Start playing this curve sequence. Registers an active timer with the widget being animated.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Animation/CurveSequence.h

Include

#include "Animation/CurveSequence.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Animation/CurveSequence.cpp

Syntax

void Play
(
    const TSharedRef< SWidget > & InOwnerWidget,
    bool bPlayLooped,
    const float StartAtTime,
    bool bRequiresActiveTimer
)

Remarks

Start playing this curve sequence. Registers an active timer with the widget being animated.

Parameters

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

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