Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGGraphInstance
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/PCGGraph.h |
| Include | #include "PCGGraph.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/PCGGraph.cpp |
bool CanGraphInterfaceBeSet
(
const UPCGGraphInterface * GraphInterface
) const
Remarks
When setting a graph instance as a base to another graph instance, we need to make sure we don't find this graph in the graph hierarchy. Otherwise it would cause infinite recursion (like A is an instance of B and B is an instance of A). This function will go up the graph hierarchy and returning false if `this_ is ever encountered.