FGraphDiffControl::FindNodeMatch

Looks through the supplied graph for a node that best matches the one specified.

Windows
MacOS
Linux

References

Module

GraphEditor

Header

/Engine/Source/Editor/GraphEditor/Public/GraphDiffControl.h

Include

#include "GraphDiffControl.h"

Source

/Engine/Source/Editor/GraphEditor/Private/GraphDiffControl.cpp

Syntax

static FNodeMatch FindNodeMatch
(
    UEdGraph * OldGraph,
    UEdGraphNode * NewNode,
    TArray< FNodeMatch > const & PriorMatches
)

Remarks

Looks through the supplied graph for a node that best matches the one specified. Sometimes (when diffing separate assets) there could be more than one possible match, so providing a list of already matched nodes helps us narrow it down (and prevents us from matching one node with multiple others).

Returns

A pair of nodes (including the supplied one) that best match each other (one may be nullptr if no match was found).

Parameters

Parameter

Description

OldGraph

The graph you want to search.

NewNode

The new node you want to match.

PriorMatches

Previous made matches to exclude from our search.

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