Пример #1
0
/// <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);
        }
Пример #2
0
 /// <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);