Navigation
API > API/Runtime > API/Runtime/CoreUObject
Description
Checks to see if a package has been loaded, and if so, unloads it before loading it again. Does nothing if the package isn't currently loaded.
| Name | ReloadPackage |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageReload.h |
| Include Path | #include "UObject/PackageReload.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/PackageReload.cpp |
UPackage * ReloadPackage
(
UPackage * InPackageToReload,
const uint32 InLoadFlags
)
Reloaded package if successful, null otherwise.
Parameters
| Name | Remarks |
|---|---|
| InPackageToReload | Pointer to the package to reload (pointer will become invalid if the package is reloaded successfully). |
| InLoadFlags | Flags controlling loading behavior for the replacement package. |