Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackageName
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 FStringView SplitPackageNameRoot
&40;
FStringView InPackageName,
FStringView &42; OutRelativePath
&41;
Remarks
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!
"/PackageRoot/Path/Leaf" -> (return "PackageRoot"; OutRelativePath = "Path/Leaf")