RealDocs

UBlendSpace::GetResourceSizeEx

function Engine Since 4.0
#include "Animation/BlendSpace.h"
Access: public Specifiers: virtualoverride

Description

Reports the blend space's estimated memory footprint by accumulating into CumulativeResourceSize, overriding UObject::GetResourceSizeEx.

Caveats & Gotchas

  • Used by memory profiling tools (e.g. the Resource Size viewer, Size Map) — not something gameplay code calls directly.
  • Only accounts for the blend space asset's own data; referenced animation sequences report their own sizes separately.

Signature

virtual void GetResourceSizeEx(FResourceSizeEx& CumulativeResourceSize) override

Parameters

Name Type Description Default
CumulativeResourceSize FResourceSizeEx& Accumulator that the blend space's estimated memory usage is added to.

Return Type

void

Example

Queried by the editor's Size Map C++
FResourceSizeEx ResourceSize(EResourceSizeMode::Exclusive);
BlendSpaceAsset->GetResourceSizeEx(ResourceSize);
const SIZE_T Bytes = ResourceSize.GetTotalMemoryBytes();

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.