Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/IPackageResourceManager
Description
Try to register the given FPreloadableFile instance to handle the next call to TryTakePreloadableArchive for its PackagePath
Only works on PackagePaths with PackageName, will fail on unmounted LocalOnly paths. Will fail if the instance has not been initialized or if another instance has already registered for the PackagePath. Return whether the instance is currently registered. Returns true if the instance was already registered. Registered files are referenced-counted, and the reference will not be dropped until TryTakePreloadableArchive or UnRegister is called
| Name | TryRegisterPreloadableArchive |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageResourceManager.h |
| Include Path | #include "UObject/PackageResourceManager.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/PackageResourceManager.cpp |
static bool TryRegisterPreloadableArchive
(
const FPackagePath & PackagePath,
const TSharedPtr < FPreloadableArchive > & PreloadableArchive,
const FOpenPackageResult & PackageFormat
)
True if and only if the archive is now registered for the packagepath, False if the packagepath could not be registered or a different archive was already registered
Parameters
| Name | Remarks |
|---|---|
| PackagePath | The path to registry to return the Archive |
| PreloadableArchive | The archive to return from TryTakePreloadableArchive |
| PackageFormat | The format of the archive, as returned from OpenReadPackage |