Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Description
Test whether a given packagename is in a valid root, and convert it to root, path, and leafname components. If not in a valid root, all output arguments are reset to empty.
| Name | SplitLongPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include Path | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static bool SplitLongPackageName
(
const FString & InLongPackageName,
FString & OutPackageRoot,
FString & OutPackagePath,
FString & OutPackageLeafName,
const bool bStripRootLeadingSlash
)
Whether the path is in a valid root.
Parameters
| Name | Remarks |
|---|---|
| InLongPackageName | Package Name, e.g. "/Game/Maps/TestMaps/MyMap". Also supports packagenames with extension (which are not valid package names), e.g. /Game/Maps/TestMaps/MyMap.umap. |
| OutPackageRoot | The package root path, eg "/Game/" |
| OutPackagePath | The path from the mount point to the package, eg "Maps/TestMaps/@param OutPackageLeafName The leaf name, including extension if present, eg "MyMap" or "MyMap.umap".@param bStripRootLeadingSlash: If false, OutpackageRoot="/ |