Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/IPackageResourceManager
Description
Open an IAsyncReadFileHandle to asynchronously read the bytes of the given ExternalResource. An ExternalResource is in a separate domain from the one out of which this ResourceManager serves PackagePaths.
TODO: This call should not hit the disk/network or block, but it currently does, to find the extension. This call will always return a non-null handle, even if the package does not exist
| Name | OpenAsyncReadExternalResource |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageResourceManager.h |
| Include Path | #include "UObject/PackageResourceManager.h" |
FOpenAsyncPackageResult OpenAsyncReadExternalResource
(
EPackageExternalResource ResourceType,
FStringView Identifier
)
An FOpenAsyncPackageResult, with Handle that will read from the package if it exists, or will be in the canceled state if the package does not exist, and with other data describing the returned archive (see FOpenAsyncPackageResult)
Parameters
| Name | Remarks |
|---|---|
| ResourceType | Id for the method used to map the identifier to an archive. |
| Identifier | Id for which resource to return within the ResourceType's domain. |