FPackagePath::GetPackageFName

Return as an [FName](API\Runtime\Core\UObject\FName) the PackageName indicated by this PackagePath if known or available, or NAME_None 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

FName GetPackageFName() const

Remarks

Return as an FName the PackageName indicated by this PackagePath if known or available, or NAME_None if not

Returning a valid name is possible only for MountedPath and PackageOnly internal types. Will attempt to mount before returning NAME_None