FPackagePath::FromMountedComponents

Construct a PackagePath from the components of a MountedPath

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h

Include

#include "Misc/PackagePath.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Misc/PackagePath.cpp

Syntax

static FPackagePath FromMountedComponents
(
    FStringView PackageNameRoot,
    FStringView FilePathRoot,
    FStringView RelPath,
    EPackageExtension InExtension,
    FStringView InCustomExtension
)

Remarks

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)

Returns

The constructed PackagePath

Parameters

Parameter

Description

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