From 4df675382d401b16b33efa44db75c8fb1630d635 Mon Sep 17 00:00:00 2001 From: omarchuk-gsc Date: Thu, 10 Sep 2026 15:34:46 +0000 Subject: [PATCH] Expose node input/output pins getters, and pin type name to blueprint to enable auto testing --- Source/Flow/Public/Nodes/FlowNode.h | 3 +++ Source/Flow/Public/Types/FlowDataPinBlueprintLibrary.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Flow/Public/Nodes/FlowNode.h b/Source/Flow/Public/Nodes/FlowNode.h index 4b7405df5..9d864410c 100644 --- a/Source/Flow/Public/Nodes/FlowNode.h +++ b/Source/Flow/Public/Nodes/FlowNode.h @@ -148,7 +148,10 @@ class FLOW_API UFlowNode : public UFlowNodeBase uint8 CountNumberedOutputs() const; public: + UFUNCTION(BlueprintPure, Category = "FlowNode") const TArray& GetInputPins() const { return InputPins; } + + UFUNCTION(BlueprintPure, Category = "FlowNode") const TArray& GetOutputPins() const { return OutputPins; } UFUNCTION(BlueprintPure, Category = "FlowNode") diff --git a/Source/Flow/Public/Types/FlowDataPinBlueprintLibrary.h b/Source/Flow/Public/Types/FlowDataPinBlueprintLibrary.h index a8a30e2f4..16f77bee9 100644 --- a/Source/Flow/Public/Types/FlowDataPinBlueprintLibrary.h +++ b/Source/Flow/Public/Types/FlowDataPinBlueprintLibrary.h @@ -42,13 +42,14 @@ class UFlowDataPinBlueprintLibrary : public UBlueprintFunctionLibrary } UFUNCTION(BlueprintPure, Category = FlowPin, Meta = (BlueprintThreadSafe, DisplayName = "Break Flow Pin")) - static void BreakStruct(UPARAM(DisplayName = "Flow Pin") FFlowPin Ref, FName& OutPinName, FText& OutPinFriendlyName, FString& OutPinToolTip) + static void BreakStruct(UPARAM(DisplayName = "Flow Pin") FFlowPin Ref, FName& OutPinName, FText& OutPinFriendlyName, FString& OutPinToolTip, FName& OutPinType) { OutPinName = Ref.PinName; #if WITH_EDITOR OutPinFriendlyName = Ref.PinFriendlyName; OutPinToolTip = Ref.PinToolTip; #endif + OutPinType = Ref.GetPinTypeName().Name; } /**