Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedPtr< FStreamableHandle > ChangeBundleStateForMatchingPrimaryAssets
(
const TArray< FName >& NewBundles, |
Changes the bundle state of all loaded primary assets. | Engine/AssetManager.h | |
virtual TSharedPtr< FStreamableHandle > ChangeBundleStateForMatchingPrimaryAssets
(
const TArray< FName >& NewBundles, |
Changes the bundle state of all loaded primary assets. | Engine/AssetManager.h |
ChangeBundleStateForMatchingPrimaryAssets(const TArray< FName > &, const TArray< FName > &, FAssetManagerLoadParams &&, UE::FSourceLocation)
Description
Changes the bundle state of all loaded primary assets. Only assets matching OldBundles will be modified 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.
| Name | ChangeBundleStateForMatchingPrimaryAssets |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
| Include Path | #include "Engine/AssetManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
virtual TSharedPtr < FStreamableHandle > ChangeBundleStateForMatchingPrimaryAssets
(
const TArray < FName > & NewBundles,
const TArray < FName > & OldBundles,
FAssetManagerLoadParams && LoadParams,
UE::FSourceLocation Location
)
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
Parameters
| Name | Remarks |
|---|---|
| NewBundles | New bundle state for the assets that are changed |
| OldBundles | Old bundle state, it will remove these bundles and replace with NewBundles |
| LoadParams | Contains callbacks and async load priority |
| Location | [optional] Is not intended for direct use, the parameter catches call site source location and passes it down to the streaming manager. See FStreamingManager. |
ChangeBundleStateForMatchingPrimaryAssets(const TArray< FName > &, const TArray< FName > &, FStreamableDelegate, TAsyncLoadPriority, UE::FSourceLocation)
Description
Changes the bundle state of all loaded primary assets. Only assets matching OldBundles will be modified 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. Prefer the overloads with Param structs for new code.
| Name | ChangeBundleStateForMatchingPrimaryAssets |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
| Include Path | #include "Engine/AssetManager.h" |
virtual TSharedPtr < FStreamableHandle > ChangeBundleStateForMatchingPrimaryAssets
(
const TArray < FName > & NewBundles,
const TArray < FName > & OldBundles,
FStreamableDelegate DelegateToCall,
TAsyncLoadPriority Priority,
UE::FSourceLocation Location
)
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
Parameters
| Name | Remarks |
|---|---|
| NewBundles | New bundle state for the assets that are changed |
| OldBundles | Old bundle state, it will remove these bundles and replace with NewBundles |
| DelegateToCall | [optional] Delegate that will be called on completion |
| Priority | [optional] Async loading priority for this request |
| Location | [optional] Is not intended for direct use, the parameter catches call site source location and passes it down to the streaming manager. See FStreamingManager. |