Choose your operating system:
Windows
macOS
Linux
| FGCObject
|
Module |
|
Header |
/Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h |
Include |
#include "BlueprintNodeTemplateCache.h" |
class FBlueprintNodeTemplateCache : public FGCObject
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.
Name | Description | |
---|---|---|
|
FBlueprintNodeTemplateCache() |
Name | Description | ||
---|---|---|---|
|
ClearCachedTemplate ( |
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). |
|
|
GetEstimateCacheSize() |
Approximates the current memory footprint of the entire cache (instantiated UObject sizes + allocated container space). |
|
|
UEdGraphNode... |
GetNodeTemplate ( |
Retrieves a cached template associated with the supplied spawner. |
|
UEdGraphNode... |
GetNodeTemplate ( |
Retrieves a cached template associated with the supplied spawner. |
|
IsTemplateOuter ( |
Utility method to help external systems identify if a graph they have belongs here, to the FBlueprintNodeTemplateCache system. |
|
|
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. |
Name | Description | ||
---|---|---|---|
|
AddReferencedObjects ( |
Pure virtual that must be overloaded by the inheriting class. |
|
|
GetReferencerName() |
Use this method to report a name for your referencer. |