Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/IPackageResourceManager > API/Runtime/CoreUObject/UObject/IPackageResourceManager/OpenReadPackage
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageResourceManager.h |
| Include | #include "UObject/PackageResourceManager.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/PackageResourceManager.cpp |
FOpenPackageResult OpenReadPackage
(
const FPackagePath & PackagePath,
FPackagePath * OutUpdatedPath
)
Remarks
Open an FArchive to read the bytes of the package An FOpenPackageResult, with Result.Archive == archive for the bytes of the package or nullptr if it isn't found, and with other data describing the returned archive (see FOpenPackageResult)
Parameters
| Name | Description |
|---|---|
| PackagePath | The package to look for |
| OutUpdatedPath | If non-null and the package is found, PackagePath is copied into this path (noop if OutUpdatedPath == &PackagePath), and if the package exists, the specific extension found is set |