FBlueprintNodeTemplateCache::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.

Unreal Engine C++ API Reference > Editor > BlueprintGraph > FBlueprintNodeTemplateCache

References

   
Module BlueprintGraph
Header /Engine/Source/Editor/BlueprintGraph/Public/BlueprintNodeTemplateCache.h
Include #include "BlueprintNodeTemplateCache.h"
Source /Engine/Source/Editor/BlueprintGraph/Private/BlueprintNodeTemplateCache.cpp
int64 RecalculateCacheSize()

Remarks

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. The new approximated total (in bytes) that this cache has allocated.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library