UEdGraphNode::ForEachNodeDirectlyConnectedIf

Often we are only interested in a subset of our connections (e.g. only output pins, or only output pins except our exec pin) This function provides the ability to execute a provided function once for each node that is directly connected to this node, but first filters out which of this node's pins to consider:

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/EdGraph/EdGraphNode.h

Include

#include "EdGraph/EdGraphNode.h"

Source

/Engine/Source/Runtime/Engine/Private/EdGraph/EdGraphNode.cpp

Syntax

void ForEachNodeDirectlyConnectedIf
(
    TFunctionRef< bool *Pin)> Filter,
    TFunctionRef< void *)> Func
)

Remarks

Often we are only interested in a subset of our connections (e.g. only output pins, or only output pins except our exec pin) This function provides the ability to execute a provided function once for each node that is directly connected to this node, but first filters out which of this node's pins to consider:

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss