Navigation
API > API/Editor > API/Editor/UnrealEd
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/FileHelpers.h |
| Include | #include "FileHelpers.h" |
Syntax
class FEditorFileUtils
Remarks
For saving map files through the main editor frame.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AttemptUnloadInactiveWorldPackage
(
UPackage* PackageToUnload, |
Unloads the specified package potentially containing an inactive world. | |
| bool | AutosaveContentPackages
(
const FString& AbsoluteAutosaveDir, |
Saves all asset packages to the specified directory. | |
| EAutosaveContentPackagesResult::Type | AutosaveContentPackagesEx
(
const FString& AbsoluteAutosaveDir, |
Saves all asset packages to the specified directory. | |
| bool | AutosaveMap
(
const FString& AbsoluteAutosaveDir, |
Saves all levels to the specified directory. | |
| EAutosaveContentPackagesResult::Type | AutosaveMapEx
(
const FString& AbsoluteAutosaveDir, |
Saves all levels to the specified directory. | |
| ECommandResult::Type | CheckoutPackages
(
const TArray< UPackage* >& PkgsToCheckOut, |
Check out the specified packages from source control and report any errors while checking out | |
| ECommandResult::Type | CheckoutPackages
(
const TArray< FString >& PkgsToCheckOut, |
Check out the specified packages from source control and report any errors while checking out | |
| void | Export
(
bool bExportSelectedActorsOnly |
||
| FString | ExtractPackageName
(
const FString& ObjectPath |
Helper function used to extract the package name from the object path | |
| void | FindAllConfigFiles
(
TArray< FString >& OutConfigFiles |
Looks for config files for the current project. | |
| void | FindAllPackageFiles
(
TArray< FString >& OutPackages |
Looks for package files in the known content paths on disk. | |
| void | FindAllSubmittableConfigFiles
(
TMap< FString, FSourceControlStatePtr >& OutConfigFiles |
Looks for source control submittable non-package config files for the current project. | |
| void | FindAllSubmittablePackageFiles
(
TMap< FString, FSourceControlStatePtr >& OutPackages, |
Looks for source control submittable files in the known content paths on disk. | |
| void | FindAllSubmittableProjectFiles
(
TMap< FString, FSourceControlStatePtr >& OutProjectFiles |
Looks for source control submittable non-package project files for the current project. | |
| FString | GetAutoSaveFilename
(
UPackage*const Package, |
Get the autosave filename for the given package. | |
| void | GetDirtyContentPackages
(
TArray< UPackage* >& OutDirtyPackages, |
Appends array with all currently dirty content packages. | |
| void | GetDirtyPackages
(
TArray< UPackage* >& OutDirtyPackages, |
Appends array with all currently dirty packages | |
| void | GetDirtyWorldPackages
(
TArray< UPackage* >& OutDirtyPackages, |
Appends array with all currently dirty world packages. | |
| FString | GetFilename
(
const FName& PackageName |
||
| FString | GetFilename
(
UObject* LevelObject |
||
| FString | GetFilterString
(
EFileInteraction Interaction |
Returns a file filter string appropriate for a specific file interaction. | |
| FOnLoadMapEnd & | |||
| FOnLoadMapStart & | |||
| void | |||
| void | Import () |
Presents the user with a file dialog for importing. | |
| bool | Whether or not we're in the middle of loading the simple startup map | ||
| bool | IsMapPackageAsset
(
const FString& ObjectPath, |
Helper function used to decide whether a package name is a map package or not. | |
| bool | IsMapPackageAsset
(
const FString& ObjectPath |
Helper function used to decide whether a package name is a map package or not. | |
| bool | IsValidMapFilename
(
const FString& MapFilename, |
Returns true if the specified map filename is valid for loading or saving. | |
| void | Loads a simple example map | ||
| bool | Loads the specified map. | ||
| 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. | |
| void | OpenLevelPickingDialog
(
const FOnLevelsChosen& OnLevelsChosen, |
Opens a non-modal dialog to allow the user to choose a level | |
| void | PrepareWorldsForExplicitSave
(
TArray< UWorld* > Worlds |
Broadcasts the OnPrepareWorldsForExplicitSave event to allow validation and changes to worlds before they're saved. | |
| EPromptReturnCode | |||
| EPromptReturnCode | PromptForCheckoutAndSave
(
const TArray< UPackage* >& PackagesToSave, |
||
| 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. | |
| bool | PromptToCheckoutLevels
(
bool bCheckDirty, |
Prompt the user with a check-box dialog allowing them to check out relevant level packages from source control | |
| 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 | |
| bool | Prompt the user with a check-box dialog allowing them to check out the provided packages from source control, if desired | ||
| void | RegisterLevelFilename
(
UObject* Object, |
Sets the active level filename so that "Save" operates on this file and "SaveAs" must be used on others | |
| void | Clears current level filename so that the user must SaveAs on next Save. | ||
| void | SaveAssetsAs
(
const TArray< UObject* >& Assets, |
Does a SaveAs for the specified assets. | |
| bool | Saves the active level, prompting the use for checkout if necessary. | ||
| bool | SaveDirtyContentPackages
(
TArray< UClass* >& SaveContentClasses, |
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) | |
| 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) | |
| bool | Saves the specified level. | ||
| bool | SaveLevelAs
(
ULevel* Level, |
Does a saveAs for the specified level.Does a saveAs for the specified level. | |
| bool | Saves the specified map package, returning true on success. | ||
| bool | SaveMapDataPackages
(
UWorld* World, |
Saves packages which contain map data but are not map packages themselves. | |
| bool | SaveWorlds
(
UWorld* InWorld, |
Save all packages corresponding to the specified world, with the option to override their path and also apply a prefix. | |
| bool | Whether or not saving the map package should save the external objects packages |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPromptForCheckoutAndSaveParams | |||
| FShouldIgnorePackage |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EGarbageCollectionOption | Used to decide how to handle garbage collection. | ||
| EPromptReturnCode | Enum used for prompt returns |
Typedefs
| Name | Description |
|---|---|
| FOnLevelPickingCancelled | |
| FOnLevelsChosen | |
| FOnLoadMapEnd | |
| FOnLoadMapStart | |
| FOnPrepareWorldsForExplicitSave | |
| FShouldIgnorePackageFunctionRef | Dirty Package Ignore |
Constants
| Name | Description |
|---|---|
| bIsLoadingDefaultStartupMap | |
| bIsPromptingForCheckoutAndSave | Flag used to determine if the checkout and save prompt is already open to prevent re-entrance |
| bSkipExternalObjectSave | Flag used in SaveMap to skip saving external objects and only save the map |
| OnLoadMapEnd | |
| OnLoadMapStart | |
| OnPrepareWorldsForExplicitSave | |
| PackagesNotSavedDuringSaveAll | Set of packages to ignore for save/checkout when using SaveAll. |
| PackagesNotToPromptAnyMore | Set of packages which should no longer prompt for checkouts / to be made writable. |