UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DataflowDynamicConnections.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
9
10#include "DataflowDynamicConnections.generated.h"
11
12struct FDataflowNode;
13
14/*
15* Dynamic connection object allow a node to add dynamic inputs or outputs backed by a strongly typed properties via a property bag
16*/
17USTRUCT()
19{
21
27
28public:
31
32 DATAFLOWENGINE_API void Refresh();
33
34private:
36 FConnectionReference GetConnectionReference(int32 Index) const;
37
38 bool IsSupportedType(const FPropertyBagPropertyDesc& PropertyDesc);
40 TArray<FDataflowConnection*> GetDynamicConnections() const;
41 void ClearDynamicConnections();
42
43 bool SetConnectionTypeFromPropertyDesc(FDataflowConnection& Connection, const FPropertyBagPropertyDesc& PropertyDesc);
44 FName GetCppTypeFromPropertyDesc(const FPropertyBagPropertyDesc& PropertyDesc);
45 FDataflowConnection* AddNewConnectionFromPropertyDesc(const FPropertyBagPropertyDesc& PropertyDesc);
46
47private:
48 UPROPERTY()
49 TArray<FDataflowAllTypes> DynamicProperties;
50
51 TMap<FName, FGuid> ConnectionNameToPropertyId;
52
53 UE::Dataflow::FPin::EDirection PinDirection = UE::Dataflow::FPin::EDirection::NONE;
54 IOwnerInterface* OwnerInterface;
55 TWeakObjectPtr<UDataflow> DataflowAssetWeakPtr;
56};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition NameTypes.h:617
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition DataflowObject.h:106
Definition AdvancedWidgetsModule.cpp:13
U16 Index
Definition radfft.cpp:71
Definition DataflowAnyType.h:24
Definition DataflowConnection.h:131
Definition DataflowDynamicConnections.h:23
virtual const FInstancedPropertyBag & GetPropertyBag(const FDataflowDynamicConnections *Caller)=0
virtual FDataflowNode * GetOwner(const FDataflowDynamicConnections *Caller)=0
Definition DataflowDynamicConnections.h:19
Definition DataflowNode.h:52
Definition Guid.h:109
Definition PropertyBag.h:418
Definition PropertyBag.h:249
Definition WeakObjectPtrTemplates.h:25
EDirection
Definition DataflowConnection.h:29
Definition DataflowConnection.h:84