Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Description
Tries to convert a file or directory in game-relative package name format to the corresponding local path Game-relative package names can be a full package path (/Game/Folder/File, /Engine/Folder/File, /PluginName/Folder/File) or a relative path (Folder/File). Full package paths must be in a mounted directory to be successfully converted.
| Name | TryConvertGameRelativePackagePathToLocalPath |
| 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 TryConvertGameRelativePackagePathToLocalPath
(
FStringView RelativePackagePath,
FString & OutLocalPath
)
Whether the conversion was successful.
Parameters
| Name | Remarks |
|---|---|
| RelativePackagePath | The path in game-relative package format (allowed to have or not have an extension). |
| OutLocalPath | The corresponding local-path file (with the extension or lack of extension from the input). |