NormalizePackageNames

Takes an array of package names (in any format) and converts them into relative pathnames for each package.

Choose your operating system:

Windows

macOS

Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/PackageHelperFunctions.h

Include

#include "PackageHelperFunctions.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Commandlets/PackageUtilities.cpp

Syntax

bool NormalizePackageNames
(
    TArray< FString > PackageNames,
    TArray< FString > & PackagePathNames,
    const FString & PackageWildcard,
    uint8 PackageFilter
)

Remarks

Takes an array of package names (in any format) and converts them into relative pathnames for each package.

Returns

true if packages were found successfully, false otherwise.

Parameters

Parameter

Description

PackageNames

the array of package names to normalize. If this array is empty, the complete package list will be used.

PackagePathNames

will be filled with the complete relative path name for each package name in the input array

PackageWildcard

if specified, allows the caller to specify a wildcard to use for finding package files

PackageFilter

allows the caller to limit the types of packages returned.