UAssetManager::UnloadPrimaryAssets

Unloads a list of Primary Assets that were previously Loaded.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h

Include

#include "Engine/AssetManager.h"

Source

/Engine/Source/Runtime/Engine/Private/AssetManager.cpp

Syntax

virtual int32 UnloadPrimaryAssets
(
    const TArray< FPrimaryAssetId > & AssetsToUnload
)

Remarks

Unloads a list of Primary Assets that were previously Loaded. If the only thing keeping these assets in memory was a prior Load call, they will be freed.

Returns

Number of assets unloaded

Parameters

Parameter

Description

AssetsToUnload

List of primary assets to load

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