Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackagePath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool TryFromPackageName
(
FStringView InPackageName, |
Attempt to construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* | Misc/PackagePath.h | |
static bool TryFromPackageName
(
FName InPackageName, |
Misc/PackagePath.h | ||
static bool TryFromPackageName
(
const TCHAR* InPackageName, |
Misc/PackagePath.h |
TryFromPackageName(FStringView, FPackagePath &)
Description
Attempt to construct a PackagePath from a LongPackageName StringView, FName, or TCHAR*
Does not handle InPackageNames that are actually LocalPaths; use TryFromMountedName if you need to handle either PackageName or LocalPath Fails and returns false if and only if InPackageName is not a valid LongPackageName (/Root/Folder/File) Will be converted to a MountedPath when the LocalPath is required; if the package is not mounted at that point the LocalPath will be empty
| Name | TryFromPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
| Include Path | #include "Misc/PackagePath.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp |
static bool TryFromPackageName
(
FStringView InPackageName,
FPackagePath & OutPackagePath
)
True if InPackageName is valid, else false
Parameters
| Name | Remarks |
|---|---|
| InPackageName | The LongPackageName to test, does not have to be mounted or existing |
| OutPackagePath | If InPackageName is valid, the constructed PackagePath is copied into this variable, otherwise the variable is not written |
TryFromPackageName(FName, FPackagePath &)
| Name | TryFromPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
| Include Path | #include "Misc/PackagePath.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp |
static bool TryFromPackageName
(
FName InPackageName,
FPackagePath & OutPackagePath
)
TryFromPackageName(const TCHAR *, FPackagePath &)
| Name | TryFromPackageName |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
| Include Path | #include "Misc/PackagePath.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp |
static bool TryFromPackageName
(
const TCHAR * InPackageName,
FPackagePath & OutPackagePath
)