FPackagePath::GetPackageName

Return the PackageName indicated by this PackagePath if known or available, or empty string if not

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h

Include

#include "Misc/PackagePath.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp

Syntax

FString GetPackageName() const

Remarks

Return the PackageName indicated by this PackagePath if known or available, or empty string if not

Returning non-empty is possible only for MountedPath and PackageOnly internal types. Will attempt to mount before returning empty