FBlueprintNodeTemplateCache

Serves as a centralized data-store for all [UBlueprintNodeSpawner](API\Editor\BlueprintGraph\UBlueprintNodeSpawner) node- templates.

Windows
MacOS
Linux

Inheritance Hierarchy

FGCObject

FBlueprintNodeTemplateCache

References

Module

BlueprintGraph

Header

/Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h

Include

#include "BlueprintNodeTemplateCache.h"

Syntax

class FBlueprintNodeTemplateCache : public FGCObject

Remarks

Serves as a centralized data-store for all UBlueprintNodeSpawner node- templates. Implemented this way (rather than internal to UBlueprintNodeSpawner) since node-templates require a UEdGraph/UBlueprint outer chain. Instead of instantiating a bunch of graphs/blueprints per UBlueprintNodeSpawner, we'd rather have a small centralized set here.

Constructors

Functions

Name Description

Public function

void

 

ClearCachedTemplate

(
    UBlueprintNodeSpawner const* N...
)

Wipes any nodes that were cached on behalf of the specified spawner (should be called when NodeSpawner is destroyed, in case GetNodeTemplate() was called for it).

Public function Const

int32

 

GetEstimateCacheSize()

Approximates the current memory footprint of the entire cache (instantiated UObject sizes + allocated container space).

Public function

UEdGraphNode...

 

GetNodeTemplate

(
    UBlueprintNodeSpawner const* N...,
    UEdGraph* TargetGraph
)

Retrieves a cached template associated with the supplied spawner.

Public function Const

UEdGraphNode...

 

GetNodeTemplate

(
    UBlueprintNodeSpawner const* N...,
    ENoInit
)

Retrieves a cached template associated with the supplied spawner.

Public function Static

bool

 

IsTemplateOuter

(
    UEdGraph* ParentGraph
)

Utility method to help external systems identify if a graph they have belongs here, to the FBlueprintNodeTemplateCache system.

Public function

int32

 

RecalculateCacheSize()

External systems can make changes that alter the memory footprint of the cache (like calling AllocateDefaultPins), and since we don't recalculate the cache's size every frame sometimes we need to update the internal estimate.

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Pure virtual that must be overloaded by the inheriting class.

Public function Virtual Const

FString

 

GetReferencerName()

Use this method to report a name for your referencer.

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