FPackagePath::FromLocalPath

Construct a PackagePath from a LocalPath string

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 FromLocalPath
(
    FStringView InFilename
)

Remarks

Construct a PackagePath from a LocalPath string

Does not handle InFilenames that are actually PackageNames; use TryFromMountedName if you need to handle either PackageName or LocalPath Will be converted to a MountedPath when the PackageName is required; if the package is not mounted at that point the PackageName will be empty. Always succeeds; all strings are valid filenames

Returns

The constructed PackagePath

Parameters

Parameter

Description

InFilename

The full LocalPath, D:.Ext, may be relative or absolute, extension is not required