/// <summary> /// Changes the number of loops to play given a playing animation /// @param InAnimation The animation that is already playing /// @param NumLoopsToPlay The number of loops to play. (0 to loop indefinitely) /// </summary> public void SetNumLoopsToPlay(UWidgetAnimation InAnimation, int NumLoopsToPlay) { CheckIsValid(); SetNumLoopsToPlay(_this.Get(), InAnimation, NumLoopsToPlay); }
/// <summary> /// Stops an already running animation in this widget /// @param The name of the animation to stop /// </summary> public void StopAnimation(UWidgetAnimation InAnimation) { CheckIsValid(); StopAnimation(_this.Get(), InAnimation); }
/// <summary> /// If an animation is playing, this function will reverse the playback. /// @param InAnimation The playing animation that we want to reverse /// </summary> public void ReverseAnimation(UWidgetAnimation InAnimation) { CheckIsValid(); ReverseAnimation(_this.Get(), InAnimation); }
/// <summary> /// Changes the playback rate of a playing animation /// @param InAnimation The animation that is already playing /// @param PlaybackRate Playback rate multiplier (1 is default) /// </summary> public void SetPlaybackSpeed(UWidgetAnimation InAnimation, float PlaybackSpeed = 1.000000f) { CheckIsValid(); SetPlaybackSpeed(_this.Get(), InAnimation, PlaybackSpeed); }
/// <summary> /// Plays an animation in this widget a specified number of times /// @param InAnimation The animation to play /// @param StartAtTime The time in the animation from which to start playing, relative to the start position. For looped animations, this will only affect the first playback of the animation. /// @param NumLoopsToPlay The number of times to loop this animation (0 to loop indefinitely) /// @param PlaybackSpeed The speed at which the animation should play /// @param PlayMode Specifies the playback mode /// </summary> public extern void PlayAnimation(UWidgetAnimation InAnimation, float StartAtTime = 0.000000f, int NumLoopsToPlay = 1, EUMGSequencePlayMode PlayMode = EUMGSequencePlayMode.Forward, float PlaybackSpeed = 1.000000f);
/// <summary> /// Plays an animation in this widget a specified number of times /// @param InAnimation The animation to play /// @param StartAtTime The time in the animation from which to start playing, relative to the start position. For looped animations, this will only affect the first playback of the animation. /// @param NumLoopsToPlay The number of times to loop this animation (0 to loop indefinitely) /// @param PlaybackSpeed The speed at which the animation should play /// @param PlayMode Specifies the playback mode /// </summary> public void PlayAnimation(UWidgetAnimation InAnimation, float StartAtTime = 0.000000f, int NumLoopsToPlay = 1, EUMGSequencePlayMode PlayMode = EUMGSequencePlayMode.Forward, float PlaybackSpeed = 1.000000f) { CheckIsValid(); PlayAnimation(_this.Get(), InAnimation, StartAtTime, NumLoopsToPlay, (int)PlayMode, PlaybackSpeed); }
/// <summary> /// Pauses an already running animation in this widget /// @param The name of the animation to pause /// @return the time point the animation was at when it was paused, relative to its start position. Use this as the StartAtTime when you trigger PlayAnimation. /// </summary> public extern float PauseAnimation(UWidgetAnimation InAnimation);
/// <summary> /// Stops an already running animation in this widget /// @param The name of the animation to stop /// </summary> public extern void StopAnimation(UWidgetAnimation InAnimation);
/// <summary> /// Gets the current time of the animation in this widget /// @param The name of the animation to get the current time for /// @return the current time of the animation. /// </summary> public extern float GetAnimationCurrentTime(UWidgetAnimation InAnimation);
/// <summary> /// Gets whether an animation is currently playing on this widget. /// @param InAnimation The animation to check the playback status of /// @return True if the animation is currently playing /// </summary> public extern bool IsAnimationPlaying(UWidgetAnimation InAnimation);
/// <summary> /// Changes the number of loops to play given a playing animation /// @param InAnimation The animation that is already playing /// @param NumLoopsToPlay The number of loops to play. (0 to loop indefinitely) /// </summary> public extern void SetNumLoopsToPlay(UWidgetAnimation InAnimation, int NumLoopsToPlay);
/// <summary> /// Changes the playback rate of a playing animation /// @param InAnimation The animation that is already playing /// @param PlaybackRate Playback rate multiplier (1 is default) /// </summary> public extern void SetPlaybackSpeed(UWidgetAnimation InAnimation, float PlaybackSpeed = 1.000000f);
/// <summary> /// If an animation is playing, this function will reverse the playback. /// @param InAnimation The playing animation that we want to reverse /// </summary> public extern void ReverseAnimation(UWidgetAnimation InAnimation);