UAnimGraphNode_LinkedAnimGraphBase::HasInstanceLoop_Recursive

Finds out whether there is a loop in the graph formed by linked instances from CurrNode, used by HasInstanceLoop.

Unreal Engine C++ API Reference > Editor > AnimGraph > UAnimGraphNode_LinkedAnimGraphBase

References

   
Module AnimGraph
Header /Engine/Source/Editor/AnimGraph/Public/AnimGraphNode_LinkedAnimGraphBase.h
Include #include "AnimGraphNode_LinkedAnimGraphBase.h"
Source /Engine/Source/Editor/AnimGraph/Private/AnimGraphNode_LinkedAnimGraphBase.cpp
static bool HasInstanceLoop_Recursive
(
    [UAnimGraphNode_LinkedAnimGraphBase](API\Editor\AnimGraph\UAnimGraphNode_LinkedAnimGraphBa-) * CurrNode,
    [TArray](API\Runtime\Core\Containers\TArray)< [FGuid](API\Runtime\Core\Misc\FGuid) > & VisitedNodes,
    [TArray](API\Runtime\Core\Containers\TArray)< [FGuid](API\Runtime\Core\Misc\FGuid) > & NodeStack
)

Remarks

Finds out whether there is a loop in the graph formed by linked instances from CurrNode, used by HasInstanceLoop. VisitedNodes and NodeStack are required to track the graph links VisitedNodes - Node we have searched the links of, so we don't do it twice NodeStack - The currently considered chain of nodes. If a loop is detected this will contain the chain that causes the loop


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library