2019-12-26 15:33:43 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
2014-04-24 08:49:31 -04:00
|
|
|
#include "AnimGraphNode_StateResult.h"
|
2018-08-10 10:25:16 -04:00
|
|
|
#include "GraphEditorSettings.h"
|
2020-09-09 08:32:25 -04:00
|
|
|
#include "IAnimBlueprintCompilationContext.h"
|
2018-08-10 10:25:16 -04:00
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "A3Nodes"
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////
|
|
|
|
|
// UAnimGraphNode_StateResult
|
|
|
|
|
|
2014-10-14 10:29:11 -04:00
|
|
|
UAnimGraphNode_StateResult::UAnimGraphNode_StateResult(const FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
}
|
2018-08-10 10:25:16 -04:00
|
|
|
|
|
|
|
|
FLinearColor UAnimGraphNode_StateResult::GetNodeTitleColor() const
|
|
|
|
|
{
|
|
|
|
|
return GetDefault<UGraphEditorSettings>()->ResultNodeTitleColor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FText UAnimGraphNode_StateResult::GetNodeTitle(ENodeTitleType::Type TitleType) const
|
|
|
|
|
{
|
|
|
|
|
return LOCTEXT("AnimGraphNodeStateResult_Title", "Output Animation Pose");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FText UAnimGraphNode_StateResult::GetTooltipText() const
|
|
|
|
|
{
|
|
|
|
|
return LOCTEXT("AnimGraphNodeStateResult_Tooltip", "This is the output of this animation state");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool UAnimGraphNode_StateResult::IsSinkNode() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UAnimGraphNode_StateResult::GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const
|
|
|
|
|
{
|
|
|
|
|
// Intentionally empty. This node is auto-generated when a new graph is created.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FString UAnimGraphNode_StateResult::GetDocumentationLink() const
|
|
|
|
|
{
|
|
|
|
|
return TEXT("Shared/GraphNodes/AnimationStateMachine");
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-09 08:32:25 -04:00
|
|
|
void UAnimGraphNode_StateResult::OnProcessDuringCompilation(IAnimBlueprintCompilationContext& InCompilationContext, IAnimBlueprintGeneratedClassCompiledData& OutCompiledData)
|
2020-09-01 14:07:48 -04:00
|
|
|
{
|
2020-09-09 08:32:25 -04:00
|
|
|
UAnimGraphNode_StateResult* TrueNode = InCompilationContext.GetMessageLog().FindSourceObjectTypeChecked<UAnimGraphNode_StateResult>(this);
|
2020-09-01 14:07:48 -04:00
|
|
|
|
2021-04-22 04:57:09 -04:00
|
|
|
Node.SetName(TrueNode->GetGraph()->GetFName());
|
2020-09-01 14:07:48 -04:00
|
|
|
}
|
|
|
|
|
|
2018-08-10 10:25:16 -04:00
|
|
|
#undef LOCTEXT_NAMESPACE
|