FBlueprintNodeTemplateCache

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

Unreal Engine C++ API Reference > Editor > BlueprintGraph

Inheritance Hierarchy

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h
Include #include "BlueprintNodeTemplateCache.h"

Syntax

class FBlueprintNodeTemplateCache : public [FGCObject](API\Runtime\CoreUObject\UObject\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

Type Name Description
  FBlueprintNodeTemplateCache ()  

Functions

Type Name Description
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).
int64 GetEstimateCacheSize () Approximates the current memory footprint of the entire cache (instantiated UObject sizes + allocated container space).
UEdGraphNode... GetNodeTemplate ( UBlueprintNodeSpawner const* N..., UEdGraph* TargetGraph ) Retrieves a cached template associated with the supplied spawner.
UEdGraphNode... GetNodeTemplate ( UBlueprintNodeSpawner const* N..., ENoInit ) Retrieves a cached template associated with the supplied spawner.
bool IsTemplateOuter ( UEdGraph* ParentGraph ) Utility method to help external systems identify if a graph they have belongs here, to the FBlueprintNodeTemplateCache system.
int64 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

Type Name Description
void AddReferencedObjects ( FReferenceCollector& Collector ) Pure virtual that must be overloaded by the inheriting class.
FString GetReferencerName () Overload this method to report a name for your referencer

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library