Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackageName
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static bool TryConvertToMountedPath
&40;
FStringView InPath,
FString &42; OutLocalPathNoExtension,
FString &42; OutPackageName,
FString &42; OutObjectName,
FString &42; OutSubObjectName,
FString &42; OutExtension,
EFlexNameType &42; OutFlexNameType,
EErrorCode &42; OutFailureReason
&41;
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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. |