/Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h
Returning a valid name is possible only for MountedPath and PackageOnly internal types. Will attempt to mount before returning NAME_None
[FName](API\Runtime\Core\UObject\FName) GetPackageFName() const