ReloadPackage

Checks to see if a package has been loaded, and if so, unloads it before loading it again.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/PackageReload.h

Include

#include "UObject/PackageReload.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/PackageReload.cpp

Syntax

UPackage * ReloadPackage
(
    UPackage * InPackageToReload,
    const uint32 InLoadFlags
)

Remarks

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.

Returns

Reloaded package if successful, null otherwise.

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss