Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Description
For a given package and platform, return what Chunks it should be assigned to, games can override this as needed. Returns false if no information found
| Name | GetPackageChunkIds |
| 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 bool GetPackageChunkIds
(
FName PackageName,
const ITargetPlatform * TargetPlatform,
TArrayView < const int32 > ExistingChunkList,
TArray < int32 > & OutChunkList,
TArray < int32 > * OutOverrideChunkList
) const
Parameters
| Name | Remarks |
|---|---|
| PackageName | Package to check chunks for |
| TargetPlatform | Can be used to do platform-specific chunking, this is null when previewing in the editor |
| ExistingChunkList | List of chunks that the asset was previously assigned to, may be empty |
| OutChunkList | List of chunks to actually assign this to |
| OutOverrideChunkList | List of chunks that were added due to override rules, not just normal primary asset rules. Tools use this for dependency checking |