Navigation
API > API/Editor > API/Editor/UnrealEd
This class is a wrapper for editor loading and saving functionality It is meant to contain only functions that can be executed in script (but are also allowed in C++). It is separated from FEditorFileUtils to ensure new easier to use methods can be created without breaking FEditorFileUtils backwards compatibility However this should be used in place of FEditorFileUtils wherever possible as the goal is to deprecate FEditorFileUtils eventually
| Name | UEditorLoadingAndSavingUtils |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/FileHelpers.h |
| Include Path | #include "FileHelpers.h" |
Syntax
UCLASS (Transient)
class UEditorLoadingAndSavingUtils : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEditorLoadingAndSavingUtils
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ExportScene
(
bool bExportSelectedActorsOnly |
Exports the current scene | FileHelpers.h |
|
| Fully loads the given assets, so that UE no longer has a write lock on their on-disk files. | FileHelpers.h |
|
|
| Fully loads the given packages, so that UE no longer has a write lock on their on-disk files. | FileHelpers.h |
|
|
| Appends array with all currently dirty content packages. | FileHelpers.h |
|
|
| Appends array with all currently dirty map packages. | FileHelpers.h |
|
|
static void ImportScene
(
const FString& Filename |
Imports a file such as (FBX or obj) and spawns actors f into the current level | FileHelpers.h |
|
| Loads the specified map. Does not prompt the user to save the current map. | FileHelpers.h |
|
|
static UWorld * LoadMapWithDialog() |
Prompts the user to save the current map if necessary, the presents a load dialog and loads a new map if selected by the user. | FileHelpers.h |
|
static UWorld * NewBlankMap
(
bool bSaveExistingMap |
FileHelpers.h |
|
|
| FileHelpers.h |
|
||
static void ReloadPackages
(
const TArray< UPackage* >& PackagesToReload, |
Helper function that attempts to reload the specified top-level packages. | FileHelpers.h |
|
static bool SaveCurrentLevel() |
Saves the active level, prompting the use for checkout if necessary. | FileHelpers.h |
|
static bool SaveDirtyPackages
(
const bool bSaveMapPackages, |
Looks at all currently loaded packages and saves them if their "bDirty" flag is set. | FileHelpers.h |
|
static bool SaveDirtyPackagesWithDialog
(
const bool bSaveMapPackages, |
Looks at all currently loaded packages and saves them if their "bDirty" flag is set. | FileHelpers.h |
|
| Saves the specified map, returning true on success. | FileHelpers.h |
|
|
static bool SavePackages
(
const TArray< UPackage* >& PackagesToSave, |
Save all packages. | FileHelpers.h |
|
static bool SavePackagesWithDialog
(
const TArray< UPackage* >& PackagesToSave, |
Save all packages. | FileHelpers.h |
|
| Unloads a list of packages | FileHelpers.h |
|