Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/ICookPackageSplitter > API/Editor/UnrealEd/ICookPackageSplitter/FPopulateContext
Description
Returns the UPackage for which the event is being called. Returns the OwnerPackage if IsCalledOnGenerator, returns the targetgenerated package if !IsCalledOnGenerator. Guaranteed to not return nullptr.
| Name | GetTargetPackage |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/CookPackageSplitter.h |
| Include Path | #include "CookPackageSplitter.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Cooker/CookGenerationHelper.cpp |
UPackage * GetTargetPackage() const