Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackagePath
Description
Parse the extension from a filepath and convert it to an EPackageExtension.
Note this is not the same as FPaths::GetExtension because some EPackageExtensions have multiple '.'s (e.g. .m.ubulk)
| Name | ParseExtension |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
| Include Path | #include "Misc/PackagePath.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp |
static EPackageExtension ParseExtension
(
FStringView Filename,
int32 * OutExtensionStart
)
The EPackageExtension matching the (case-insensitive) extension text in the filename. EPackageExtension::Unspecified if the filename has no extension. EPackageExtension::Custom if the filename's extension is not one of the enumerated possibilities in EPackageExtension
Parameters
| Name | Remarks |
|---|---|
| Filename | The path to parse the extension from |
| OutExtensionStart | If non-null, will be filled with the index of the '.' at the start of the extension, or with Filename.Len() if no extension is found |