Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > UPackageTools
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Public/PackageTools.h |
Include | #include "PackageTools.h" |
Source | /Engine/Source/Editor/UnrealEd/Private/PackageTools.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Package Tools")
static FString FilenameToPackageName
(
const FString & Filename
)
Remarks
Tries to convert a given relative or absolute filename to a long package name or path starting with a root like /Game This works on both package names and directories, and it does not validate that it actually exists on disk. Resulting long package name if the supplied filename properly maps to a long package root, empty string otherwise.
Parameters
Name | Description |
---|---|
Filename | Filename to convert. |