Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackagePath
Description
Construct a PackagePath from the components of a MountedPath
This function is less expensive than TryFromMountedName It is invalid to call this function with arguments that do not match an existing directory that is mounted (aka registered with FPackageName::MountPointExists)
| Name | FromMountedComponents |
| 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 FPackagePath FromMountedComponents
(
FStringView PackageNameRoot,
FStringView FilePathRoot,
FStringView RelPath,
EPackageExtension InExtension,
FStringView InCustomExtension
)
The constructed PackagePath
Parameters
| Name | Remarks |
|---|---|
| PackageNameRoot | The PackageName of the MountPoint |
| FilePathRoot | The FilePath of the MountPoint |
| RelPath | The relative path of the PackagePath from the PackageNameRoot/FilePathRoot (relative path from MountPoint is the same in PackageNames and LocalPaths) |
| InExtension | The header extension to give the PackagePath. Extensions that are not header extensions are ignored |
| InCustomExtension | The custom string to use if InExtension is EPackageExtension::Custom |