Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void SplitPackageName
(
FStringView InPackageName, |
Convert a long package name into root, path, and leafname components. | Misc/PackageName.h | |
static void SplitPackageName
(
const FString& InLongPackageName, |
Misc/PackageName.h |
SplitPackageName(FStringView, FStringView , FStringView , FStringView *, EPathFormatFlags)
Description
Convert a long package name into root, path, and leafname components. For the FStringView version, the returned FStringViews are views into the input FStringView.
| Name | SplitPackageName |
| 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 void SplitPackageName
(
FStringView InPackageName,
FStringView * OutPackageRoot,
FStringView * OutPackagePath,
FStringView * OutPackageLeafName,
EPathFormatFlags Flags
)
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 Flags Flags specifying which characters are included in OutputPackageRoot, @see EPathFormatFlags.Edge cases examples:"" -> "","","""/" -> "", "", """/root" -> "", "", """/root/" -> "/root/", "", """/root/leaf" -> "/root/", "", "leaf""/root/path/" -> "/root/", "path/", """/root/path/leaf" -> "/root/", "path/", "leaf" |
SplitPackageName(const FString &, FString , FString , FString *, EPathFormatFlags)
| Name | SplitPackageName |
| 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 void SplitPackageName
(
const FString & InLongPackageName,
FString * OutPackageRoot,
FString * OutPackagePath,
FString * OutPackageLeafName,
EPathFormatFlags Flags
)