Navigation
API > API/Editor > API/Editor/UnrealEd
For saving map files through the main editor frame.
| Name | FEditorFileUtils |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/FileHelpers.h |
| Include Path | #include "FileHelpers.h" |
Syntax
class FEditorFileUtils
Structs
| Name | Remarks |
|---|---|
| FPromptForCheckoutAndSaveParams | |
| FShouldIgnorePackage |
Enums
Public
| Name | Remarks |
|---|---|
| EGarbageCollectionOption | Used to decide how to handle garbage collection. |
| EPromptReturnCode | Enum used for prompt returns |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnLevelPickingCancelled | TBaseDelegate_NoParams< void > | FileHelpers.h | |
| FOnLevelsChosen | TBaseDelegate_OneParam< void, const TArray< FAssetData > & > | FileHelpers.h | |
| FOnLoadMapEnd | TMulticastDelegate_OneParam< void, const FString &Filename > | FileHelpers.h | |
| FOnLoadMapStart | TMulticastDelegate_NoParams< void > | FileHelpers.h | |
| FOnPrepareWorldsForExplicitSave | TMulticastDelegate_OneParam< void, TArray< UWorld * > Worlds > | FileHelpers.h | |
| FShouldIgnorePackageFunctionRef | TFunctionRef< bool(UPackage *)> | Dirty Package Ignore | FileHelpers.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bIsLoadingDefaultStartupMap | bool | FileHelpers.h | |
| bIsPromptingForCheckoutAndSave | bool | Flag used to determine if the checkout and save prompt is already open to prevent re-entrance | FileHelpers.h |
| bSkipExternalObjectSave | bool | Flag used in SaveMap to skip saving external objects and only save the map | FileHelpers.h |
| OnLoadMapEnd | FOnLoadMapEnd | FileHelpers.h | |
| OnLoadMapStart | FOnLoadMapStart | FileHelpers.h | |
| OnPrepareWorldsForExplicitSave | FOnPrepareWorldsForExplicitSave | FileHelpers.h | |
| PackagesNotSavedDuringSaveAll | TSet< FString > | Set of packages to ignore for save/checkout when using SaveAll. | FileHelpers.h |
| PackagesNotToPromptAnyMore | TSet< FString > | Set of packages which should no longer prompt for checkouts / to be made writable. | FileHelpers.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Private method used to build a list of items requiring checkout | FileHelpers.h | ||
static bool AttemptUnloadInactiveWorldPackage
(
UPackage* PackageToUnload, |
Unloads the specified package potentially containing an inactive world. | FileHelpers.h | |
| Tries to checkout packages without prompting and only prompts (for revert) if that fails | FileHelpers.h | ||
static bool AutosaveContentPackages
(
const FString& AbsoluteAutosaveDir, |
Saves all asset packages to the specified directory. | FileHelpers.h | |
static EAutosaveContentPackagesResult::Type AutosaveContentPackagesEx
(
const FString& AbsoluteAutosaveDir, |
Saves all asset packages to the specified directory. | FileHelpers.h | |
static bool AutosaveMap
(
const FString& AbsoluteAutosaveDir, |
Saves all levels to the specified directory. | FileHelpers.h | |
static EAutosaveContentPackagesResult::Type AutosaveMapEx
(
const FString& AbsoluteAutosaveDir, |
Saves all levels to the specified directory. | FileHelpers.h | |
static ECommandResult::Type CheckoutPackages
(
const TArray< UPackage* >& PkgsToCheckOut, |
Check out the specified packages from source control and report any errors while checking out | FileHelpers.h | |
static ECommandResult::Type CheckoutPackages
(
const TArray< FString >& PkgsToCheckOut, |
Check out the specified packages from source control and report any errors while checking out | FileHelpers.h | |
static void Export
(
bool bExportSelectedActorsOnly |
FileHelpers.h | ||
| Helper function used to extract the package name from the object path | FileHelpers.h | ||
| Looks for config files for the current project. | FileHelpers.h | ||
| Looks for package files in the known content paths on disk. | FileHelpers.h | ||
| Looks for source control submittable non-package config files for the current project. | FileHelpers.h | ||
| Looks for source control submittable files in the known content paths on disk. | FileHelpers.h | ||
| Looks for source control submittable non-package project files for the current project. | FileHelpers.h | ||
| Get the autosave filename for the given package. | FileHelpers.h | ||
| Appends array with all currently dirty content packages. | FileHelpers.h | ||
| Appends array with all currently dirty packages | FileHelpers.h | ||
| Appends array with all currently dirty world packages. | FileHelpers.h | ||
static FString GetFilename
(
const FName& PackageName |
FileHelpers.h | ||
static FString GetFilename
(
UObject* LevelObject |
FileHelpers.h | ||
static FString GetFilterString
(
EFileInteraction Interaction |
Returns a file filter string appropriate for a specific file interaction. | FileHelpers.h | |
static FOnLoadMapEnd & GetOnLoadMapEndDelegate() |
FileHelpers.h | ||
static FOnLoadMapStart & GetOnLoadMapStartDelegate() |
FileHelpers.h | ||
| FileHelpers.h | |||
static void Import () |
Presents the user with a file dialog for importing. | FileHelpers.h | |
static bool IsLoadingStartupMap() |
Whether or not we're in the middle of loading the simple startup map | FileHelpers.h | |
static bool IsMapPackageAsset
(
const FString& ObjectPath, |
Helper function used to decide whether a package name is a map package or not. | FileHelpers.h | |
static bool IsMapPackageAsset
(
const FString& ObjectPath |
Helper function used to decide whether a package name is a map package or not. | FileHelpers.h | |
static bool IsValidMapFilename
(
const FString& MapFilename, |
Returns true if the specified map filename is valid for loading or saving. | FileHelpers.h | |
static void LoadDefaultMapAtStartup() |
Loads a simple example map | FileHelpers.h | |
| Loads the specified map. | FileHelpers.h | ||
static bool LoadMap () |
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 | |
| Tries to make the given packages writable | FileHelpers.h | ||
static void OpenLevelPickingDialog
(
const FOnLevelsChosen& OnLevelsChosen, |
Opens a non-modal dialog to allow the user to choose a level | FileHelpers.h | |
static void PrepareWorldsForExplicitSave
(
TArray< UWorld* > Worlds |
Broadcasts the OnPrepareWorldsForExplicitSave event to allow validation and changes to worlds before they're saved. | FileHelpers.h | |
static EPromptReturnCode PromptForCheckoutAndSave
(
const TArray< UPackage* >& PackagesToSave, |
FileHelpers.h | ||
static EPromptReturnCode PromptForCheckoutAndSave
(
const TArray< UPackage* >& PackagesToSave, |
FileHelpers.h | ||
static EPromptReturnCode PromptForCheckoutAndSave
(
const TArray< UPackage* >& PackagesToSave, |
Optionally prompts the user for which of the provided packages should be saved, and then additionally prompts the user to check-out any of the provided packages which are under source control. | FileHelpers.h | |
static bool PromptToCheckoutLevels
(
bool bCheckDirty, |
Prompt the user with a check-box dialog allowing them to check out relevant level packages from source control | FileHelpers.h | |
static bool PromptToCheckoutLevels
(
bool bCheckDirty, |
Overloaded version of PromptToCheckOutLevels which prompts the user with a check-box dialog allowing them to check out the relevant level package if necessary | FileHelpers.h | |
| Prompt the user with a check-box dialog allowing them to check out the provided packages from source control, if desired | FileHelpers.h | ||
| Prompts for package checkout without reentrance check | FileHelpers.h | ||
| Sets the active level filename so that "Save" operates on this file and "SaveAs" must be used on others | FileHelpers.h | ||
static void ResetLevelFilenames () |
Clears current level filename so that the user must SaveAs on next Save. | FileHelpers.h | |
| Does a SaveAs for the specified assets. | FileHelpers.h | ||
static bool SaveCurrentLevel() |
Saves the active level, prompting the use for checkout if necessary. | FileHelpers.h | |
| Looks at all currently loaded packages and saves them if their "bDirty" flag is set and they include specified clasees, optionally prompting the user to select which packages to save) | FileHelpers.h | ||
static bool SaveDirtyPackages
(
const bool bPromptUserToSave, |
Looks at all currently loaded packages and saves them if their "bDirty" flag is set, optionally prompting the user to select which packages to save) | FileHelpers.h | |
| Saves the specified level. | FileHelpers.h | ||
| Does a saveAs for the specified level.Does a saveAs for the specified level. | FileHelpers.h | ||
| Saves the specified map package, returning true on success. | FileHelpers.h | ||
static bool SaveMapDataPackages
(
UWorld* World, |
Saves packages which contain map data but are not map packages themselves. | FileHelpers.h | |
| Save all packages corresponding to the specified world, with the option to override their path and also apply a prefix. | FileHelpers.h | ||
static bool ShouldSkipExternalObjectSave() |
Whether or not saving the map package should save the external objects packages | FileHelpers.h | |
| Callback from PackagesDialog used to update the list of items when the source control state changes | FileHelpers.h |