You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
1) Root motion delta flow supported through all anim nodes deriving from FAnimNode_AssetPlayerBase and montages. 2) Stride/Orientation warping feature graph-driven evaluation modes which leverage root motion delta flow (graph-driven slope warping currently disabled). 3) Root motion flow connected to the Animation Warping plugin. 4) Pose Warping test map featuring various motion "styles" connected to pose warping (Motion Matching, Blend Space Graphs/Assets, Sequence Players, Evaluators). #preflight 6092380a58c4790001a3e9b6 #rb aaron.cox, braeden.shosa, thomas.sarkanen #jira none #fyi laurent.delayen [CL 16208667 by koray hagen in ue5-main 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::RootMotionDeltaAttributeName);
|
|
}
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|