Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FStringView SplitPackageNameRoot
(
FStringView InPackageName, |
Returns the top level 'directory' in a package name. | Misc/PackageName.h | |
static FString SplitPackageNameRoot
(
FName InPackageName, |
Misc/PackageName.h |
SplitPackageNameRoot(FStringView, FStringView *, EPathFormatFlags)
Description
Returns the top level 'directory' in a package name. If the package is part of a plugin, the root will be the name of the associated plugin, otherwise it will be 'Engine' or 'Game'.
Note the slashes are removed by default (EPathFormatFlags::MountPointNoSlashes), Default: "/PackageRoot/Path/Leaf" -> (return "PackageRoot"; OutRelativePath = "Path/Leaf") With EPathFormatFlags::MountPointSlashes: "/PackageRoot/Path/Leaf" -> (return "/PackageRoot/"; OutRelativePath = "Path/Leaf")
| Name | SplitPackageNameRoot |
| 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 FStringView SplitPackageNameRoot
(
FStringView InPackageName,
FStringView * OutRelativePath,
EPathFormatFlags Flags
)
See Also
SplitPackageNameRoot(FName, FString *, EPathFormatFlags)
| Name | SplitPackageNameRoot |
| 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 FString SplitPackageNameRoot
(
FName InPackageName,
FString * OutRelativePath,
EPathFormatFlags Flags
)