Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FCookEventContext
Description
Available during the event UE::Cook::PlatformCookDependencies, ignored in other events.
Add the given FCookDependency to the build dependencies for the package being cook-saved. Incremental cooks will invalidate the package and recook it if the CookDependency changes. Other packages that incorporate the loaded data of the package into their own cooked results will also be recooked if this build dependency changes. Calling this function during editor save (rather than cook save) has another meaning. It is ignored for FCookDependency of type other than FCookDependency::Package, but for FCookDependency::Package it identifies a reference that propagates chunk management in the AssetRegistry, but does not cause its target to be cooked.
| Name | AddLoadBuildDependency |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Cooker/CookEvents.h |
| Include Path | #include "Cooker/CookEvents.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Cooker/CookEvents.cpp |
void AddLoadBuildDependency
(
FCookDependency CookDependency
)