Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackageName > API/Runtime/CoreUObject/Misc/FPackageName/DoesPackageExist
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static bool DoesPackageExist
(
const FPackagePath & PackagePath,
bool bMatchCaseOnDisk,
FPackagePath * OutPackagePath
)
Remarks
Checks if the package exists on disk. PackagePath must be a mounted path, otherwise returns false true if the specified package name points to an existing package, false otherwise.
Parameters
| Name | Description |
|---|---|
| PackagePath | Package package. |
| Guid | If nonnull, and the package is found on disk but does not have this PackageGuid in its FPackageFileSummary::Guid, false is returned |
| bMatchCaseOnDisk | If true, the OutPackagePath is modified to match the capitalization of the discovered file |
| OutPackagePath | If nonnull and the package exists, set to a copy of PackagePath with the HeaderExtension set to the extension that exists on disk (and if bMatchCaseOnDisk is true, capitalization changed to match). If not found, this variable is not written |