Skip to content

Instantly share code, notes, and snippets.

@Firefly74940
Firefly74940 / AnimatedImage.cpp
Created March 17, 2021 17:41 — forked from grisevg/AnimatedImage.cpp
UMG Animated Image.
#include "AnimatedImage.h"
void UAnimatedImage::SetCurrentFrame(int32 Frame)
{
CurrentFrame = Frame;
if (CurrentFrame < 0) CurrentFrame = 0;
if (CurrentFrame > TotalFrames - 1) CurrentFrame = TotalFrames - 1;
SynchronizeProperties();
}
@Firefly74940
Firefly74940 / AnimNode_WRandomPlayer.cpp
Created January 13, 2019 14:51
Random Sequence Player NoLoop
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "DPGPluginPrivatePCH.h"
#include "AnimNode_WRandomPlayer.h"
#include "AnimationRuntime.h"
#include "Animation/AnimInstanceProxy.h"
FAnimNode_WRandomPlayer::FAnimNode_WRandomPlayer()
: CurrentEntry(INDEX_NONE)
, CurrentDataIndex(0)
{