Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
Description
Called from within SavePackage on the passed in base/root object. The return value of this function will be passed to PostSaveRoot. This is used to allow objects used as a base to perform required actions before saving and cleanup afterwards.
Derived Overrides
| Name | PreSaveRoot |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
| Include Path | #include "UObject/Object.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp |
virtual void PreSaveRoot
(
FObjectPreSaveRootContext ObjectSaveContext
)
Parameters
| Name | Remarks |
|---|---|
| ObjectSaveContext | Context providing access to parameters of the save, Also allows storage of variables like bCleanupIsRequired for use in PostSaveRoot |