Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UPackageTools
Description
Converts a long package name to a file name. This can be called on package paths as well, provide no extension in that case. Will return an empty string if it fails.
| Name | PackageNameToFilename |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/PackageTools.h |
| Include Path | #include "PackageTools.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/PackageTools.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Package Tools",
Meta=(AdvancedDisplay=1))
static FString PackageNameToFilename
(
const FString & PackageName,
const FString & Extension
)
Package filename, or empty if it failed.
Parameters
| Name | Remarks |
|---|---|
| PackageName | Long Package Name |
| Extension | Package extension. |