Files
UnrealEngineUWP/Engine/Source/Editor/AnimGraph/Private/AnimGraphNode_RandomPlayer.cpp
koray hagen 2eb9f8dfcd Gameplay Anim Gym and Pose Warping project cleanup. Tuning and improvements for distance-based play rate adjustment in motion matching.
#rb Aaron.Cox, Braeden.Shosa
#preflight 60f5dfe07eff4a000112bd91

#ROBOMERGE-SOURCE: CL 16889250 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16889277 by koray hagen in ue5-release-engine-test branch]
2021-07-19 17:25:01 -04:00

43 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AnimGraphNode_RandomPlayer.h"
#include "EditorCategoryUtils.h"
#include "Animation/AnimAttributes.h"
#include "Animation/AnimRootMotionProvider.h"
#define LOCTEXT_NAMESPACE "AnimGraphNode_RandomPlayer"
FLinearColor UAnimGraphNode_RandomPlayer::GetNodeTitleColor() const
{
return FLinearColor(0.10f, 0.60f, 0.12f);
}
FText UAnimGraphNode_RandomPlayer::GetTooltipText() const
{
return LOCTEXT("NodeToolTip", "Plays sequences picked from a provided list in random orders.");
}
FText UAnimGraphNode_RandomPlayer::GetNodeTitle(ENodeTitleType::Type TitleType) const
{
return LOCTEXT("NodeTitle", "Random Sequence Player");
}
FText UAnimGraphNode_RandomPlayer::GetMenuCategory() const
{
return FEditorCategoryUtils::GetCommonCategory(FCommonEditorCategory::Animation);
}
void UAnimGraphNode_RandomPlayer::GetOutputLinkAttributes(FNodeAttributeArray& OutAttributes) const
{
OutAttributes.Add(UE::Anim::FAttributes::Curves);
OutAttributes.Add(UE::Anim::FAttributes::Attributes);
if (UE::Anim::IAnimRootMotionProvider::Get())
{
OutAttributes.Add(UE::Anim::IAnimRootMotionProvider::AttributeName);
}
}
#undef LOCTEXT_NAMESPACE