Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FObjectSavePackageSerializeConte-
Description
Add the given UObject's package as a runtime dependency for the package being cook-saved. It will be cooked for the current platform even if it is not otherwise referenced, and even if the object being PreSaved does not end up saving into the package's exports for the current platform.
| Name | AddCookRuntimeDependency |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectSaveContext.h |
| Include Path | #include "UObject/ObjectSaveContext.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/SavePackage/SavePackageUtilities.cpp |
void AddCookRuntimeDependency
(
FSoftObjectPath Dependency
)