FPackagePath::GetPackageNameOrFallback

Returns the PackageName if available, otherwise the LocalPath

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 GetPackageNameOrFallback() const

Remarks

Returns the PackageName if available, otherwise the LocalPath

Do not use this function as a PackageName; use it only for uniquely identifying PackagePaths in e.g. a TMap