Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
Include |
#include "Engine/AssetManager.h" |
Source |
/Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
virtual TSharedPtr< FStreamableHandle > ChangeBundleStateForPrimaryAssets
(
const TArray< FPrimaryAssetId > & AssetsToChange,
const TArray< FName > & AddBundles,
const TArray< FName > & RemoveBundles,
bool bRemoveAllBundles,
FStreamableDelegate DelegateToCall,
TAsyncLoadPriority Priority
)
Changes the bundle state of a set of loaded primary assets. You can wait on the returned streamable request or poll as needed. If there is no work to do, returned handle will be null and delegate will get called before function returns.
Streamable Handle that can be used to poll or wait. You do not need to keep this handle to stop the assets from being unloaded
Parameter |
Description |
---|---|
AssetsToChange |
List of primary assets to change state of |
AddBundles |
List of bundles to add |
RemoveBundles |
Explicit list of bundles to remove |
RemoveAllBundles |
If true, remove all existing bundles even if not in remove list |
DelegateToCall |
Delegate that will be called on completion, may be called before function returns if assets are already loaded |
Priority |
Async loading priority for this request |