Navigation
API > API/Plugins > API/Plugins/PCG
A single frame of a call stack, represented as a pointer to the associated object (graph/subgraph or node) or a loop index.
| Name | FPCGStackFrame |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Graph/PCGStackContext.h |
| Include Path | #include "Graph/PCGStackContext.h" |
Syntax
USTRUCT ()
struct FPCGStackFrame
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Graph/PCGStackContext.h | |||
FPCGStackFrame
(
const UObject* InObject |
Graph/PCGStackContext.h | ||
FPCGStackFrame
(
int32 InLoopIndex |
Graph/PCGStackContext.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LoopIndex | int32 | Stores the loop index (if any) that this frame refers to. Use SetLoopIndex to change this and properly update the hash. | Graph/PCGStackContext.h | |
| Object | TSoftObjectPtr< const UObject > | Stores object this frame refers to. | Graph/PCGStackContext.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Hash | uint32 | Graph/PCGStackContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const T * GetObject_AnyThread() |
Graph/PCGStackContext.h | ||
const T * GetObject_GameThread() |
Graph/PCGStackContext.h | ||
const T * GetObject_NoGuard() |
Graph/PCGStackContext.h | ||
bool IsLoopIndexFrame() |
Loop index frames are injected for any dynamic subgraph invocation and have Object set explicitly null. | Graph/PCGStackContext.h | |
bool IsValid() |
A valid frame should either point to an object or have a loop index >= 0. | Graph/PCGStackContext.h | |
void PostSerialize
(
const FArchive& Ar |
Graph/PCGStackContext.h | ||
void SetLoopIndex
(
int32 InLoopIndex |
Graph/PCGStackContext.h | ||
void SetObject
(
const UObject* InObject |
Graph/PCGStackContext.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FPCGStackFrame& Other |
Graph/PCGStackContext.h | ||
bool operator==
(
const FPCGStackFrame& Other |
Graph/PCGStackContext.h |