MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / GetNodeTitle

Method GetNodeTitle

Source/FlowEditor/Private/Graph/Nodes/FlowGraphNode.cpp:668–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668FText UFlowGraphNode::GetNodeTitle(ENodeTitleType::Type TitleType) const
669{
670 if (NodeInstance)
671 {
672 if (GetDefault<UFlowGraphEditorSettings>()->bShowNodeClass)
673 {
674 FString CleanAssetName;
675 if (NodeInstance->GetClass()->ClassGeneratedBy)
676 {
677 NodeInstance->GetClass()->GetPathName(nullptr, CleanAssetName);
678 const int32 SubStringIdx = CleanAssetName.Find(".", ESearchCase::IgnoreCase, ESearchDir::FromEnd);
679 CleanAssetName.LeftInline(SubStringIdx);
680 }
681 else
682 {
683 CleanAssetName = NodeInstance->GetClass()->GetName();
684 }
685
686 FFormatNamedArguments Args;
687 Args.Add(TEXT("NodeTitle"), NodeInstance->GetNodeTitle());
688 Args.Add(TEXT("AssetName"), FText::FromString(CleanAssetName));
689 return FText::Format(INVTEXT("{NodeTitle}\n{AssetName}"), Args);
690 }
691
692 return NodeInstance->GetNodeTitle();
693 }
694
695 return Super::GetNodeTitle(TitleType);
696}
697
698FLinearColor UFlowGraphNode::GetNodeTitleColor() const
699{

Callers 8

ProcessAssetMethod · 0.80
GetTitleMethod · 0.80
ImportBlueprintGraphMethod · 0.80
IndexGraphMethod · 0.80
FFlowGraphTokenMethod · 0.80

Calls 2

GetNodeTitleFunction · 0.85
GetNameMethod · 0.45

Tested by

no test coverage detected