You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Reorganized and consolidated for easier navigation #rb Jurre.deBaare,Lucas.Dower #jira UE-156715 #preflight 62a9ac0f13004691f97cd9da #ROBOMERGE-OWNER: thomas.sarkanen #ROBOMERGE-AUTHOR: thomas.sarkanen #ROBOMERGE-SOURCE: CL 20667777 via CL 20668358 via CL 20668456 via CL 20668474 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017) [CL 20669758 by thomas sarkanen in ue5-main branch]
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AnimGraphNode_CurveSource.h"
|
|
#include "Animation/AnimAttributes.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "ExternalCurve"
|
|
|
|
FString UAnimGraphNode_CurveSource::GetNodeCategory() const
|
|
{
|
|
return TEXT("Animation|Curves");
|
|
}
|
|
|
|
FText UAnimGraphNode_CurveSource::GetTooltipText() const
|
|
{
|
|
return LOCTEXT("CurveSourceDescription", "A programmatic source for curves.\nBinds by name to an object that implements ICurveSourceInterface.\nFirst we check the actor that owns this (if any), then we check each of its components to see if we should bind to the source that matches this name.");
|
|
}
|
|
|
|
FText UAnimGraphNode_CurveSource::GetNodeTitle(ENodeTitleType::Type TitleType) const
|
|
{
|
|
if (TitleType != ENodeTitleType::MenuTitle)
|
|
{
|
|
UEdGraphPin* SourceBindingPin = FindPin(GET_MEMBER_NAME_STRING_CHECKED(FAnimNode_CurveSource, SourceBinding));
|
|
if (SourceBindingPin == nullptr && Node.SourceBinding != NAME_None)
|
|
{
|
|
return FText::Format(LOCTEXT("AnimGraphNode_CurveSource_Title_Fmt", "Curve Source: {0}"), FText::FromName(Node.SourceBinding));
|
|
}
|
|
}
|
|
|
|
return LOCTEXT("AnimGraphNode_CurveSource_Title", "Curve Source");
|
|
}
|
|
|
|
void UAnimGraphNode_CurveSource::GetOutputLinkAttributes(FNodeAttributeArray& OutAttributes) const
|
|
{
|
|
OutAttributes.Add(UE::Anim::FAttributes::Curves);
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|