FPackageName::SplitLongPackageName

Convert a long package name into root, path, and name components

Windows
MacOS
Linux

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

Syntax

static bool SplitLongPackageName
(
    const FString & InLongPackageName,
    FString & OutPackageRoot,
    FString & OutPackagePath,
    FString & OutPackageName,
    const bool bStripRootLeadingSlash
)

Remarks

Convert a long package name into root, path, and name components

Returns

True if the conversion was possible, false otherwise

Parameters

Parameter

Description

InLongPackageName

Package Name.

OutPackageRoot

The package root path, eg "/Game/"

OutPackagePath

The path from the mount point to the package, eg "Maps/TestMaps/ @param OutPackageName The name of the package, including its extension, eg "MyMap.umap"

bStripRootLeadingSlash

String any leading / character from the returned root

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss