Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageResourceManager.h |
| Include | #include "UObject/PackageResourceManager.h" |
Syntax
class IPackageResourceManager
Remarks
Provides directory queries and Archive payloads for PackagePaths and their PackageSegments from a repository that might be the local content directories, a database running on the current machine, or a remote database.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | DoesExternalResourceExist
(
EPackageExternalResource ResourceType, |
Report whether a given ExternalResource exists. | |
| bool | DoesPackageExist
(
const FPackagePath& PackagePath, |
DoesPackageExist that takes a PackageSegment | |
| bool | DoesPackageExist
(
const FPackagePath& PackagePath, |
Report whether the package exists | |
| int64 | FileSize
(
const FPackagePath& PackagePath, |
FileSize that takes a PackageSegment | |
| int64 | FileSize
(
const FPackagePath& PackagePath, |
Report the payload size of the package | |
| void | FindPackagesRecursive
(
TArray< TPair< FPackagePath, EPackageSegment >>& OutPackages, |
FindPackagesRecursive that returns PackageSegments | |
| void | FindPackagesRecursive
(
TArray< FPackagePath >& OutPackages, |
Search the given subdirectory of a package mount for all packages with the given package basename in the package repository | |
| IPackageResourceManager & | Get () |
Returns the package resource manager. It is illegal to call Get before calling initialize. | |
| FSetPackageResourceManager & | |||
| void | Initialize () |
Call during engine startup to choose the appropriate PackageResourceManager for the current configuration and construct it and bind it to be returned from Get | |
| void | IteratePackagesInLocalOnlyDirectory
(
FStringView RootDir, |
Call the callback on all packages in the given local path | |
| void | IteratePackagesInLocalOnlyDirectory
(
FStringView RootDir, |
IteratePackagesInLocalOnlyDirectory that takes a FPackageSegmentStatVisitor | |
| void | IteratePackagesInPath
(
FStringView PackageMount, |
Call the callback on all packages in the package repository that are in the given subdirectory of a package mount | |
| void | IteratePackagesInPath
(
FStringView PackageMount, |
IteratePackagesInPath that takes a FPackageSegmentVisitor | |
| void | IteratePackagesStatInLocalOnlyDirectory
(
FStringView RootDir, |
IteratePackagesStatInLocalOnlyDirectory that takes a FPackageSegmentStatVisitor | |
| void | IteratePackagesStatInLocalOnlyDirectory
(
FStringView RootDir, |
Call the callback - with stat data - on all packages in the given local path | |
| void | IteratePackagesStatInPath
(
FStringView PackageMount, |
IteratePackagesStatInPath that takes a FPackageSegmentVisitor | |
| void | IteratePackagesStatInPath
(
FStringView PackageMount, |
Call the callback - with stat data - on all packages in the package repository that are in the given subdirectory of a package mount | |
| FOpenAsyncPackageResult | OpenAsyncReadExternalResource
(
EPackageExternalResource ResourceType, |
Open an IAsyncReadFileHandle to asynchronously read the bytes of the given ExternalResource. | |
| FOpenAsyncPackageResult | OpenAsyncReadPackage
(
const FPackagePath& PackagePath, |
OpenAsyncReadPackage that takes a PackageSegment | |
| FOpenAsyncPackageResult | OpenAsyncReadPackage
(
const FPackagePath& PackagePath |
Open an IAsyncReadFileHandle to asynchronously read the bytes of the package | |
| IMappedFileHandle * | OpenMappedHandleToPackage
(
const FPackagePath& PackagePath, |
Open an IMappedFileHandle to the package, if the PackageResourceManager supports it | |
| IMappedFileHandle * | OpenMappedHandleToPackage
(
const FPackagePath& PackagePath, |
OpenMappedHandleToPackage that takes a PackageSegment | |
| TUniquePtr< FArchive > | OpenReadExternalResource
(
EPackageExternalResource ResourceType, |
Open a seekable binary FArchive to read the bytes of the given External Resource. | |
| FOpenPackageResult | OpenReadPackage
(
const FPackagePath& PackagePath, |
Open an FArchive to read the bytes of the package | |
| FOpenPackageResult | OpenReadPackage
(
const FPackagePath& PackagePath, |
OpenReadPackage that takes a PackageSegment | |
| void | Shutdown () |
Call during engine shutdown to free the PackageResourceManager that was created by Initialize; Get will and return nullptr from this point on | |
| bool | Report whether the PackageResourceManager supports PackagePaths that are unmounted LocalPaths | ||
| bool | Report whether the PackageResourceManager supports PackagePaths that are unmounted PackageNames | ||
| bool | TryMatchCaseOnDisk
(
const FPackagePath& PackagePath, |
Find the package in the package repository and set OutNormalizedPath equal to PackagePath, but with capitalization of the PackageName and LocalPath matching the capitalization present in the package repository's internal path string (e.g. the path on disk) | |
| bool | TryRegisterPreloadableArchive
(
const FPackagePath& PackagePath, |
Preloading Package Archives. | |
| bool | TryTakePreloadableArchive
(
const FPackagePath& PackagePath, |
Look up an FPreloadableFile instance registered for the given PackagePath, and return an FOpenPackageResult from it | |
| bool | UnRegisterPreloadableArchive
(
const FPackagePath& PackagePath |
Remove any FPreloadableArchive instance that is registered for the given PackagePath. |
Typedefs
| Name | Description |
|---|---|
| FPackagePathStatVisitor | Return value specifies whether iteration should continue |
| FPackagePathVisitor | Return value specifies whether iteration should continue |
| FPackageSegmentStatVisitor | Return value specifies whether iteration should continue |
| FPackageSegmentVisitor | Return value specifies whether iteration should continue |
Constants
| Name | Description |
|---|---|
| PreloadedPaths | |
| PreloadedPathsLock |