Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > Misc > FPackageName > SplitPackageNameRoot
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
(
FStringView InPackageName,
FStringView * OutRelativePath
)
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")