Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool TryConvertFilenameToLongPackageName
(
const FString& InFilename, |
Tries to convert the supplied relative or absolute filename to a long package name/path starting with a root like /game This works on both package names and directories, and it does not validate that it actually exists on disk. | Misc/PackageName.h | |
static bool TryConvertFilenameToLongPackageName
(
FStringView InFilename, |
Misc/PackageName.h |
TryConvertFilenameToLongPackageName(const FString &, FString &, FString *, const EConvertFlags)
Description
Tries to convert the supplied relative or absolute filename to a long package name/path starting with a root like /game This works on both package names and directories, and it does not validate that it actually exists on disk.
| Name | TryConvertFilenameToLongPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include Path | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static bool TryConvertFilenameToLongPackageName
(
const FString & InFilename,
FString & OutPackageName,
FString * OutFailureReason,
const EConvertFlags Flags
)
Returns true if the supplied filename properly maps to one of the long package roots.
Parameters
| Name | Remarks |
|---|---|
| InFilename | Filename to convert. |
| OutPackageName | The resulting long package name if the conversion was successful. |
| OutFailureReason | Description of an error if the conversion failed. |
| Flags | Modifies the behaviour of how filename conversions are applied. |
TryConvertFilenameToLongPackageName(FStringView, FStringBuilderBase &, FStringBuilderBase *, const EConvertFlags)
| Name | TryConvertFilenameToLongPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include Path | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static bool TryConvertFilenameToLongPackageName
(
FStringView InFilename,
FStringBuilderBase & OutPackageName,
FStringBuilderBase * OutFailureReason,
const EConvertFlags Flags
)