You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
43 lines
1.2 KiB
C++
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
|