Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Description
Find the MountPoint for a LocalPath, LongPackageName, or ObjectPath and return its elements. Use this function instead of TryConvertFilenameToLongPackageName or TryConvertLongPackageNameToFilename if you need to handle InPaths that might be ObjectPaths.
| Name | TryConvertToMountedPath |
| 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 TryConvertToMountedPath
(
FStringView InPath,
FString * OutLocalPathNoExtension,
FString * OutPackageName,
FString * OutObjectName,
FString * OutSubObjectName,
FString * OutExtension,
EFlexNameType * OutFlexNameType,
EErrorCode * OutFailureReason
)
Parameters
| Name | Remarks |
|---|---|
| InPath | The LocalPath (with path,name,extension), PackageName, or ObjectPath we want to |
| OutLocalPathNoExtension | If non-null, will be set to the LocalPath with path and basename but not extension, or empty string if input was not mounted |
| OutPackageName | If non-null, will be set to the LongPackageName, or empty string if input was not mounted |
| OutObjectName | If non-null, will be set to the ObjectName, or empty string if the input was a LocalPath or PackageName or was not mounted |
| OutSubObjectName | If non-null, will be set to the SubObjectName, or empty string if the input was a LocalPath or PackageName or was not mounted |
| OutExtension | If non-null, will be set to the LocalPath's extension, or empty string if the input was not a LocalPath or was not mounted |
| OutFlexNameType | If non-null, will be set to the FlexNameType of InPath. |
| OutFailureReason | If non-null, will be set to the reason InPath could not be converted, or to EErrorCode::Unknown if the function was successful. |