Navigation
API > API/Plugins > API/Plugins/GameFeatures > API/Plugins/GameFeatures/UGameFeatureAction_AddChunkOverr- > API/Plugins/GameFeatures/UGameFeatureAction_AddChunkOverr-/GetChunkForPackage
References
| Module | GameFeatures |
| Header | /Engine/Plugins/Runtime/GameFeatures/Source/GameFeatures/Public/GameFeatureAction_AddChunkOverride.h |
| Include | #include "GameFeatureAction_AddChunkOverride.h" |
| Source | /Engine/Plugins/Runtime/GameFeatures/Source/GameFeatures/Private/GameFeatureAction_AddChunkOverride.cpp |
static void GetChunkForPackage
(
const FName PackageName,
const int32 DefaultGameChunk,
TArray < int32 > & OutChunkList
)
Remarks
Given the package name will check if this is a package from a GFP that we want to assign a specific chunk to. Will modify the given OutChunkList removing entries so that the package prefers to go into the specified override chunk. When multiple GFPs reference a /Game package the DefaultGameChunk will be preferred. /Engine packages are ignored by the function
This can be necessary to reassign startup packages such as the GameFeatureData asset.