FArchiveTraceRoute::FindClosestLink

Searches through the objects referenced by CurrentNode for a record with a Depth lower than LowestDepth.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/ArchiveTraceRoute.h

Include

#include "Serialization/ArchiveTraceRoute.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Serialization/ArchiveTraceRoute.cpp

Syntax

bool FindClosestLink
(
    FObjectGraphNode * CurrentNode,
    int32 & LowestDepth,
    FRouteLink & ClosestLink
)

Remarks

Searches through the objects referenced by CurrentNode for a record with a Depth lower than LowestDepth.

Returns

true if a closer link was discovered; false if no links were closer than lowest depth, or if we've reached the target object.

Parameters

Parameter

Description

CurrentNode

the node containing the list of referenced objects that will be searched.

LowestDepth

the current number of links we are from the target object.

ClosestLink

if a trace route record is found with a lower depth value than LowestDepth, the link is saved to this value.